Make string concatenation more efficient.

This commit is contained in:
Dianne Skoll
2019-12-30 10:59:32 -05:00
parent 3314ce9823
commit 87347e30b2

View File

@@ -810,7 +810,7 @@ static int Add(void)
return E_NO_MEM;
}
strcpy(v3.v.str, v1.v.str);
strcat(v3.v.str, v2.v.str);
strcpy(v3.v.str+l1, v2.v.str);
DestroyValue(v1); DestroyValue(v2);
PushValStack(v3);
return OK;