sesman: pid string match xrdp length

ulab-next
Jay Sorg 12 years ago
parent a6592ed690
commit c20b447f21

@ -143,7 +143,7 @@ main(int argc, char **argv)
enum logReturns error; enum logReturns error;
int daemon = 1; int daemon = 1;
int pid; int pid;
char pid_s[8]; char pid_s[32];
char text[256]; char text[256];
char pid_file[256]; char pid_file[256];
char cfg_file[256]; char cfg_file[256];
@ -203,7 +203,7 @@ main(int argc, char **argv)
} }
g_memset(pid_s, 0, sizeof(pid_s)); 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) if (-1 == error)
{ {

Loading…
Cancel
Save