diff options
author | Laxmikant Rashinkar <LK.Rashinkar@gmail.com> | 2013-06-27 17:49:10 -0700 |
---|---|---|
committer | Laxmikant Rashinkar <LK.Rashinkar@gmail.com> | 2013-06-27 17:49:10 -0700 |
commit | e75767e4dd02bddc37ea939b74071a4e710b41b9 (patch) | |
tree | 87b565f6a93c57f2bd8d28f5b01fb6611651cd17 /sesman/sesman.c | |
parent | 6d3a2cd5fd6ef933159f0d79d7361c6d7434c2e9 (diff) | |
parent | b1389eac9940c710ff9c892fe4593f02635164ec (diff) | |
download | xrdp-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.c | 5 |
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) { |