(svn r9600) [NoAI] -Fix r9594: restore compilation with _UNICODE noai
authorglx
Wed, 11 Apr 2007 20:53:58 +0000
branchnoai
changeset 9578 2e05c1b002f0
parent 9577 8e93be390b45
child 9579 632263c0cf5a
(svn r9600) [NoAI] -Fix r9594: restore compilation with _UNICODE
src/squirrel_std.cpp
--- 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);