Diff between 52336ad64548edfddf18c20bd1a58b3c07bf5a4b and 7a638557049441ec055729055dcfb5fc38c5d06a
Changed Files
| File | Additions | Deletions | Status |
| tools/isotest.c | +5 | -2 | modified |
Full Patch
diff --git a/tools/isotest.c b/tools/isotest.c
index 5829313..fc1c26b 100644
--- a/tools/isotest.c
+++ b/tools/isotest.c
@@ -1457,8 +1457,11 @@ int main(int argc, char *argv[])
switch (mode) {
case SEND:
send_mode(filename, argv[optind + i], i, repeat);
- if (filename && strchr(filename, ','))
- filename = strchr(filename, ',') + 1;
+ if (filename && strchr(filename, ',')) {
+ char *tmp = filename;
+ filename = strdup(strchr(filename, ',') + 1);
+ free(tmp);
+ }
break;
case RECONNECT: