Update of /cvsroot/monetdb/pathfinder/compiler
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv4262/compiler

Modified Files:
        main.c 
Log Message:
[ 1633232 ] PF: memory reallocation buggy
- fixed PFrealloc so it knows the old region size



Index: main.c
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/main.c,v
retrieving revision 1.86
retrieving revision 1.87
diff -u -d -r1.86 -r1.87
--- main.c      18 May 2007 12:26:44 -0000      1.86
+++ main.c      25 May 2007 10:27:34 -0000      1.87
@@ -859,7 +859,8 @@
                 if (!status->format)
                     status->format = PFstrdup (optarg);
                 else {
-                    status->format = PFrealloc (status->format,
+                    status->format = PFrealloc (status->format, 
+                                                strlen (status->format)+1,
                                                 strlen (status->format)
                                                     + strlen (optarg) +1);
                     strcat (status->format, optarg);


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins

Reply via email to