summaryrefslogtreecommitdiffstats
path: root/sesman/sesman.c
diff options
context:
space:
mode:
authorLaxmikant Rashinkar <LK.Rashinkar@gmail.com>2013-06-27 17:49:10 -0700
committerLaxmikant Rashinkar <LK.Rashinkar@gmail.com>2013-06-27 17:49:10 -0700
commite75767e4dd02bddc37ea939b74071a4e710b41b9 (patch)
tree87b565f6a93c57f2bd8d28f5b01fb6611651cd17 /sesman/sesman.c
parent6d3a2cd5fd6ef933159f0d79d7361c6d7434c2e9 (diff)
parentb1389eac9940c710ff9c892fe4593f02635164ec (diff)
downloadxrdp-proprietary-e75767e4dd02bddc37ea939b74071a4e710b41b9.tar.gz
xrdp-proprietary-e75767e4dd02bddc37ea939b74071a4e710b41b9.zip
Merge branch 'master' of github.com:neutrinolabs/xrdp
Diffstat (limited to 'sesman/sesman.c')
-rw-r--r--sesman/sesman.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sesman/sesman.c b/sesman/sesman.c
index 4a294a5e..83db5961 100644
--- a/sesman/sesman.c
+++ b/sesman/sesman.c
@@ -143,7 +143,7 @@ main(int argc, char **argv)
enum logReturns error;
int daemon = 1;
int pid;
- char pid_s[8];
+ char pid_s[32];
char text[256];
char pid_file[256];
char cfg_file[256];
@@ -202,7 +202,8 @@ main(int argc, char **argv)
return 1;
}
- error = g_file_read(fd, pid_s, 7);
+ g_memset(pid_s, 0, sizeof(pid_s));
+ error = g_file_read(fd, pid_s, 31);
if (-1 == error)
{