Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nx-libs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dimbor
nx-libs
Commits
74c21e9e
Commit
74c21e9e
authored
Jan 03, 2018
by
Ulrich Sibiller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Args.c, Error.[ch]: introduce own length macro for nxagentClientsLogName
parent
dc61b6cc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
Args.c
nx-X11/programs/Xserver/hw/nxagent/Args.c
+1
-1
Error.c
nx-X11/programs/Xserver/hw/nxagent/Error.c
+3
-3
Error.h
nx-X11/programs/Xserver/hw/nxagent/Error.h
+2
-1
No files found.
nx-X11/programs/Xserver/hw/nxagent/Args.c
View file @
74c21e9e
...
...
@@ -1254,7 +1254,7 @@ static void nxagentParseOptions(char *name, char *value)
}
else
if
(
strcmp
(
name
,
"clients"
)
==
0
)
{
s
trcpy
(
nxagentClientsLogName
,
value
);
s
nprintf
(
nxagentClientsLogName
,
NXAGENTCLIENTSLOGNAMELENGTH
,
"%s"
,
value
);
return
;
}
...
...
nx-X11/programs/Xserver/hw/nxagent/Error.c
View file @
74c21e9e
...
...
@@ -78,7 +78,7 @@ static int nxagentClientsLog = -1;
* Clients log file name.
*/
char
nxagentClientsLogName
[
DEFAULT_STRING_
LENGTH
]
=
{
0
};
char
nxagentClientsLogName
[
NXAGENTCLIENTSLOGNAME
LENGTH
]
=
{
0
};
/*
* User's home.
...
...
@@ -591,7 +591,7 @@ void nxagentGetClientsPath()
return
;
}
if
(
strlen
(
sessionPath
)
+
strlen
(
"/clients"
)
>
DEFAULT_STRING_
LENGTH
-
1
)
if
(
strlen
(
sessionPath
)
+
strlen
(
"/clients"
)
>
NXAGENTCLIENTSLOGNAME
LENGTH
-
1
)
{
#ifdef PANIC
fprintf
(
stderr
,
"nxagentGetClientsPath: PANIC! Invalid value for the NX clients Log File Path ''.
\n
"
);
...
...
@@ -602,7 +602,7 @@ void nxagentGetClientsPath()
return
;
}
snprintf
(
nxagentClientsLogName
,
DEFAULT_STRING_
LENGTH
,
"%s/clients"
,
sessionPath
);
snprintf
(
nxagentClientsLogName
,
NXAGENTCLIENTSLOGNAME
LENGTH
,
"%s/clients"
,
sessionPath
);
free
(
sessionPath
);
}
...
...
nx-X11/programs/Xserver/hw/nxagent/Error.h
View file @
74c21e9e
...
...
@@ -30,7 +30,8 @@
* Clients log file name.
*/
extern
char
nxagentClientsLogName
[];
#define NXAGENTCLIENTSLOGNAMELENGTH 256
extern
char
nxagentClientsLogName
[
NXAGENTCLIENTSLOGNAMELENGTH
];
extern
char
nxagentVerbose
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment