*** empty log message ***
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@539 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -177,8 +177,7 @@ int execute(char *p) // all evaluation happens here,
|
||||
{
|
||||
int len = max(numargs-2, 0);
|
||||
for(int i = 1; i<numargs; i++) len += (int)strlen(w[i]);
|
||||
char *r = newstring(len);
|
||||
r[0] = 0;
|
||||
char *r = newstring("", len);
|
||||
for(int i = 1; i<numargs; i++)
|
||||
{
|
||||
strcat(r, w[i]); // make string-list out of all arguments
|
||||
|
||||
Reference in New Issue
Block a user