1.1 --- a/sourcepawn/compiler/sc6.c Sat Aug 19 20:52:42 2006 +0000
1.2 +++ b/sourcepawn/compiler/sc6.c Mon Aug 28 15:22:02 2006 +0000
1.3 @@ -18,7 +18,7 @@
1.4 * misrepresented as being the original software.
1.5 * 3. This notice may not be removed or altered from any source distribution.
1.6 *
1.7 - * Version: $Id: sc6.c 3579 2006-06-06 13:35:29Z thiadmer $
1.8 + * Version: $Id: sc6.c 3633 2006-08-11 16:20:18Z thiadmer $
1.9 */
1.10 #include <assert.h>
1.11 #include <stdio.h>
1.12 @@ -670,7 +670,7 @@
1.13 symbol *sym, **nativelist;
1.14 constvalue *constptr;
1.15 cell mainaddr;
1.16 - char nullchar = 0;
1.17 + char nullchar;
1.18
1.19 /* if compression failed, restart the assembly with compaction switched off */
1.20 if (setjmp(compact_err)!=0) {
1.21 @@ -785,8 +785,9 @@
1.22 pc_writebin(fout,&hdr,sizeof hdr);
1.23
1.24 /* dump zeros up to the rest of the header, so that we can easily "seek" */
1.25 + nullchar='\0';
1.26 for (nameofs=sizeof hdr; nameofs<hdr.cod; nameofs++)
1.27 - pc_writebin(fout, &nullchar, 1);
1.28 + pc_writebin(fout,&nullchar,1);
1.29 nameofs=hdr.nametable+sizeof(int16_t);
1.30
1.31 /* write the public functions table */