Changeset: 877abfff0d04 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=877abfff0d04
Modified Files:
buildtools/Mx/Def.c
Branch: default
Log Message:
Backed out changeset 0847e4b51484
Obviously, size was tested for to fit in the buffer before, so the
original code was ok. Besides, it didn't really fix the crash in Mx I
am observing at the moment on PPC/Darwin.
diffs (12 lines):
diff -r 0847e4b51484 -r 877abfff0d04 buildtools/Mx/Def.c
--- a/buildtools/Mx/Def.c Mon Jan 10 10:53:16 2011 +0100
+++ b/buildtools/Mx/Def.c Mon Jan 10 11:00:28 2011 +0100
@@ -505,7 +505,7 @@
}
if (f + size + 1 > blk + M_BLK)
Fatal("Mx:Too long block, use extra
directives:[%s:%d].\n", mx_file, mx_line);
- strncat(f, line, M_BLK - (f - blk));
+ strncat(f, line, size + 1);
f += size;
line = NextLine();
}
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list