1
0
mirror of https://github.com/rfivet/uemacs.git synced 2025-09-30 19:14:12 -04:00

FIX: User variable names first 10 characters are now significant.

Also CID 39927 Unbounded source buffer, 39933 Copy into fixed size buffer.
This commit is contained in:
2015-03-19 20:52:55 +08:00
parent 7f7cc5b6fd
commit d57257d653
2 changed files with 14 additions and 9 deletions

3
exec.c
View File

@@ -318,6 +318,9 @@ int nextarg(const char *prompt, char *buffer, int size, int terminator)
return getstring(prompt, buffer, size, terminator);
tmpbuf = malloc( size) ;
if( tmpbuf == NULL)
return FALSE ;
/* grab token and advance past */
gettoken( tmpbuf, size) ;