diff --git a/src/Scripting/NasalSys.cxx b/src/Scripting/NasalSys.cxx index a270a27d1..9c79b9420 100644 --- a/src/Scripting/NasalSys.cxx +++ b/src/Scripting/NasalSys.cxx @@ -232,24 +232,15 @@ static naRef f_setprop(naContext c, naRef me, int argc, naRef* args) // make sure it appears. Is there better way to do this? static naRef f_print(naContext c, naRef me, int argc, naRef* args) { -#define BUFLEN 1024 - char buf[BUFLEN + 1]; - buf[BUFLEN] = 0; // extra nul to handle strncpy brain damage - buf[0] = 0; // Zero-length in case there are no arguments - char* p = buf; - int buflen = BUFLEN; + string buf; int n = argc; for(int i=0; i