]>
Commit | Line | Data |
---|---|---|
e6825a19 JK |
1 | diff -dur sipp-3.3.orig/stat.cpp sipp-3.3/stat.cpp |
2 | --- sipp-3.3.orig/stat.cpp 2013-05-27 10:48:19.000000000 +0200 | |
3 | +++ sipp-3.3/stat.cpp 2013-05-27 11:00:15.000000000 +0200 | |
4 | @@ -1140,7 +1140,7 @@ | |
5 | char* CStat::sRepartitionInfo(T_dynamicalRepartition * tabRepartition, | |
6 | int sizeOfTab) | |
7 | { | |
8 | - static char *repartitionInfo; | |
9 | + static char *repartitionInfo = NULL; | |
10 | char buffer[MAX_CHAR_BUFFER_SIZE]; | |
11 | int dlen = strlen(stat_delimiter); | |
12 | ||
13 | @@ -1148,7 +1148,7 @@ | |
14 | { | |
15 | // if a repartition is present, this field match the repartition name | |
16 | repartitionInfo = (char *)realloc(repartitionInfo, dlen + 1); | |
17 | - strcpy(stat_delimiter, repartitionInfo); | |
18 | + strcpy(repartitionInfo, stat_delimiter); | |
19 | for(int i=0; i<(sizeOfTab-1); i++) | |
20 | { | |
21 | sprintf(buffer, "%lu%s", tabRepartition[i].nbInThisBorder, stat_delimiter); |