[netperf-dev] netperf2 commit notice r512 - trunk/src
raj at netperf.org
raj at netperf.org
Fri Dec 2 11:36:26 PST 2011
Author: raj
Date: 2011-12-02 11:36:26 -0800 (Fri, 02 Dec 2011)
New Revision: 512
Modified:
trunk/src/nettest_omni.c
Log:
OBOB errors are very annoying
Modified: trunk/src/nettest_omni.c
===================================================================
--- trunk/src/nettest_omni.c 2011-12-02 18:47:15 UTC (rev 511)
+++ trunk/src/nettest_omni.c 2011-12-02 19:36:26 UTC (rev 512)
@@ -1632,8 +1632,8 @@
len = strlen(output_selection);
source = strdup(output_selection);
- line = (char *) malloc(len);
- remainder = (char *) malloc(len);
+ line = (char *) malloc(len+1);
+ remainder = (char *) malloc(len+1);
if ((NULL == source) ||
(NULL == line) ||
@@ -1674,11 +1674,11 @@
done = 1;
}
} while (!done);
-
+
free(f1);
free(f2);
free(f3);
-
+
}
/* building blocks for output selection */
More information about the netperf-dev
mailing list