Changeset: 1dcc3af3621f for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=1dcc3af3621f
Modified Files:
clients/mapiclient/tachograph.c
Branch: default
Log Message:
Properly extend the source list when overflow occurs
diffs (12 lines):
diff --git a/clients/mapiclient/tachograph.c b/clients/mapiclient/tachograph.c
--- a/clients/mapiclient/tachograph.c
+++ b/clients/mapiclient/tachograph.c
@@ -122,7 +122,7 @@ addSourcePair(char *varname, char *name)
if( srcmax == 0)
sources = (Source *) malloc(1024 * sizeof(Source));
else
- sources = (Source *) realloc(sources, srcmax+1024);
+ sources = (Source *) realloc((void *)sources,
(srcmax+1024) * sizeof(Source));
srcmax+= 1024;
}
for( i=0; i< srctop; i++)
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list