--- a/src/squirrel_std.cpp Wed Apr 11 19:53:33 2007 +0000
+++ b/src/squirrel_std.cpp Wed Apr 11 20:53:58 2007 +0000
@@ -34,16 +34,16 @@
DEBUG(misc, 0, "[squirrel] Couldn't detect the script-name of the 'require'-caller; this should never happen!");
return SQ_ERROR;
}
- real_filename = strdup(si.source);
+ real_filename = scstrdup(si.source);
/* Keep the dir, remove the rest */
- SQChar *s = strrchr(real_filename, PATHSEPCHAR);
+ SQChar *s = scstrrchr(real_filename, PATHSEPCHAR);
if (s != NULL) {
/* Keep the PATHSEPCHAR there, remove the rest */
*s++;
*s = '\0';
}
/* And now we concat, so we are relative from the current script */
- strcat(real_filename, filename);
+ scstrcat(real_filename, filename);
/* Make sure we are in the root-table, so everything is included in the root-level */
sq_pushroottable(vm);