Fix freeing non-heap object warning from GCC (r=ann).

This commit is contained in:
Scott Ehlert 2014-02-01 04:16:26 -06:00
parent 52ff6fd5f8
commit b3d64d1121

View File

@ -267,7 +267,7 @@ int pc_compile(int argc, char *argv[])
tname=NULL;
sname=NULL;
#else
char buffer[] = P_tmpdir "/pawn.XXXXXX";
char *buffer = strdup(P_tmpdir "/pawn.XXXXXX");
close(mkstemp(buffer));
tname=buffer;
#endif