1 --- as31-2.3.1/as31/run.c 2005-09-05 12:32:42.000000000 -0400
2 +++ as31-2.3.1-fixed/as31/run.c 2012-01-11 12:30:19.000000000 -0500
4 char *incLineBuffer=NULL;
6 FILE* includeFile=NULL;
10 /* first, figure out all the file names */
18 - sprintf(tmpName,"/tmp/as31-%i-%ld.asm",uid,random());
19 - fin = fopen(tmpName, "w");
20 + sprintf(tmpName,"/tmp/as31-XXXXXX.asm");
21 + fd = mkstemps(tmpName, 4);
23 + mesg_f("Cannot create temp file\n");
24 + if (outfile) free(outfile);
25 + if (lstfile) free(lstfile);
28 + fin = fdopen(fd, "w");
30 mesg_f("Cannot open temp file: %s\n",tmpName);
32 if (outfile) free(outfile);
33 if (lstfile) free(lstfile);