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
057ce728
Unverified
Commit
057ce728
authored
Jan 05, 2020
by
Mike Gabriel
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'uli42-pr/strings_fixes' into 3.6.x
Attributes GH PR #884:
https://github.com/ArcticaProject/nx-libs/pull/884
parents
46ef20bd
80b6d6b9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
97 additions
and
125 deletions
+97
-125
Args.c
nx-X11/programs/Xserver/hw/nxagent/Args.c
+11
-1
Dialog.c
nx-X11/programs/Xserver/hw/nxagent/Dialog.c
+14
-4
Error.c
nx-X11/programs/Xserver/hw/nxagent/Error.c
+71
-113
Error.h
nx-X11/programs/Xserver/hw/nxagent/Error.h
+1
-2
Keyboard.c
nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
+0
-5
No files found.
nx-X11/programs/Xserver/hw/nxagent/Args.c
View file @
057ce728
...
...
@@ -1296,7 +1296,17 @@ static void nxagentParseSingleOption(char *name, char *value)
}
else
if
(
strcmp
(
name
,
"clients"
)
==
0
)
{
snprintf
(
nxagentClientsLogName
,
NXAGENTCLIENTSLOGNAMELENGTH
,
"%s"
,
value
);
char
*
new
=
strdup
(
value
);
if
(
new
)
{
SAFE_free
(
nxagentClientsLogName
);
nxagentClientsLogName
=
new
;
}
else
{
fprintf
(
stderr
,
"Warning: Ignoring option [%s] because of memory problems
\n
"
,
validateString
(
name
));
}
return
;
}
else
if
(
strcmp
(
name
,
"client"
)
==
0
)
...
...
nx-X11/programs/Xserver/hw/nxagent/Dialog.c
View file @
057ce728
...
...
@@ -40,6 +40,7 @@
#include "Args.h"
#include "Display.h"
#include "Dialog.h"
#include "Utils.h"
#include <nx/NX.h>
#include "compext/Compext.h"
...
...
@@ -182,7 +183,6 @@ void nxagentResetDialog(int pid)
void
nxagentLaunchDialog
(
DialogType
dialogType
)
{
char
dialogDisplay
[
256
];
sigset_t
set
,
oldSet
;
int
*
pid
;
char
*
type
;
...
...
@@ -302,13 +302,23 @@ void nxagentLaunchDialog(DialogType dialogType)
fprintf
(
stderr
,
"nxagentLaunchDialog: Launching dialog type [%d] message [%s].
\n
"
,
type
,
message
);
#endif
char
*
dialogDisplay
=
NULL
;
int
len
=
0
;
if
(
dialogType
==
DIALOG_FAILED_RECONNECTION
)
{
snprintf
(
dialogDisplay
,
sizeof
(
dialogDisplay
)
,
"%s"
,
nxagentDisplayName
);
len
=
asprintf
(
&
dialogDisplay
,
"%s"
,
nxagentDisplayName
);
}
else
{
snprintf
(
dialogDisplay
,
sizeof
(
dialogDisplay
),
":%s"
,
display
);
len
=
asprintf
(
&
dialogDisplay
,
":%s"
,
display
);
}
if
(
len
==
-
1
)
{
#ifdef DEBUG
fprintf
(
stderr
,
"%s: could not allocate display string.
\n
"
,
__func__
);
#endif
return
;
}
/*
...
...
@@ -329,7 +339,7 @@ void nxagentLaunchDialog(DialogType dialogType)
DECODE_DIALOG_TYPE
(
dialogType
),
*
pid
,
dialogDisplay
);
#endif
dialogDisplay
[
0
]
=
'\0'
;
SAFE_free
(
dialogDisplay
)
;
/*
* Restore the previous set of blocked signal.
...
...
nx-X11/programs/Xserver/hw/nxagent/Error.c
View file @
057ce728
This diff is collapsed.
Click to expand it.
nx-X11/programs/Xserver/hw/nxagent/Error.h
View file @
057ce728
...
...
@@ -30,8 +30,7 @@
* Clients log file name.
*/
#define NXAGENTCLIENTSLOGNAMELENGTH 256
extern
char
nxagentClientsLogName
[
NXAGENTCLIENTSLOGNAMELENGTH
];
extern
char
*
nxagentClientsLogName
;
extern
char
nxagentVerbose
;
...
...
nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
View file @
057ce728
...
...
@@ -1449,13 +1449,8 @@ static char* getKeyboardFilePath(void)
{
if
((
asprintf
(
&
keyboard_file_path
,
"%s/keyboard"
,
sessionpath
)
==
-
1
))
{
SAFE_free
(
sessionpath
);
FatalError
(
"malloc for keyboard file path failed."
);
}
else
{
SAFE_free
(
sessionpath
);
}
}
else
{
...
...
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