Increased buffer for shell commands

This commit is contained in:
2014-02-21 13:08:59 +01:00
parent a738232fdb
commit 2575a37e23
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -865,7 +865,7 @@ int my_shell(char *cmd, char *result, int size)
#ifdef OS_UNIX
pid_t child_pid;
int fh, status, i;
char str[256];
char str[1024];
if ((child_pid = fork()) < 0)
return 0;
@@ -877,7 +877,7 @@ int my_shell(char *cmd, char *result, int size)
memset(result, 0, size);
fh = open("/tmp/elog-shell", O_RDONLY);
if (fh > 0) {
i = read(fh, result, size);
i = read(fh, result, size-1);
close(fh);
}
+1 -1
View File
@@ -1 +1 @@
#define GIT_REVISION "Wed Sep 25 14:25:38 2013 +0200 - bac715d"
#define GIT_REVISION "Mon Jan 13 09:25:57 2014 +0100 - a738232"