summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2013-06-19 11:43:24 -0700
committerJay Sorg <jay.sorg@gmail.com>2013-06-19 11:43:24 -0700
commitc20b447f21944fcb0dd13fe300c6bdcb781188be (patch)
tree831e042bbbf0ae53112500b39ad032361ebc911d
parenta6592ed69033f51cb41f4736034715a7f1e7f699 (diff)
downloadxrdp-proprietary-c20b447f21944fcb0dd13fe300c6bdcb781188be.tar.gz
xrdp-proprietary-c20b447f21944fcb0dd13fe300c6bdcb781188be.zip
sesman: pid string match xrdp length
-rw-r--r--sesman/sesman.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sesman/sesman.c b/sesman/sesman.c
index 72561cae..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];
@@ -203,7 +203,7 @@ main(int argc, char **argv)
}
g_memset(pid_s, 0, sizeof(pid_s));
- error = g_file_read(fd, pid_s, 7);
+ error = g_file_read(fd, pid_s, 31);
if (-1 == error)
{