In the new library 'cmd' is dynamically allocated just
like 'cmdline'. This will align us with the ref below.
Reference(s):
. master branch increase to 64
commit
2cfdbbe897f0d4e41460c7c2b92acfc5804652c8
Signed-off-by: Jim Warner <james.warner@comcast.net>
#endif
case_Name:
- { char buf[16];
+ { char buf[64];
unsigned u = 0;
while(u < sizeof(buf) - 1u){
int c = *S++;
buf[u++] = c;
}
buf[u] = '\0';
- if (!P->cmd && !(P->cmd = strndup(buf, 15)))
+ if (!P->cmd && !(P->cmd = strdup(buf)))
return 1;
S--; // put back the '\n' or '\0'
continue;