# HG changeset patch # User rubidium # Date 2009-05-03 21:56:46 # Node ID 2c1d588e14444244bd39e956c13dc1ee4d46f72c # Parent 8110603609f47caad5fbac60cd1c13b649bdf7cd (svn r16222) -Fix: unneeded pointer dereferencing diff --git a/src/script/squirrel_std.cpp b/src/script/squirrel_std.cpp --- a/src/script/squirrel_std.cpp +++ b/src/script/squirrel_std.cpp @@ -60,7 +60,7 @@ SQInteger SquirrelStd::require(HSQUIRREL SQChar *s = scstrrchr(real_filename, PATHSEPCHAR); if (s != NULL) { /* Keep the PATHSEPCHAR there, remove the rest */ - *s++; + s++; *s = '\0'; } /* And now we concat, so we are relative from the current script