We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a49169f commit a9b042bCopy full SHA for a9b042b
exploithawk.c
@@ -111,12 +111,13 @@ void *load_csv_thread(void *arg) {
111
while (fgets(line, sizeof(line), f)) {
112
char *cols[10];
113
int col = 0;
114
- char *p = strtok(line, ",");
+ char *saveptr;
115
+ char *p = strtok_r(line, ",", &saveptr);
116
while (p && col < 10) {
117
while (*p == ' ' || *p == '\t') p++;
118
trim_newline(p);
119
cols[col++] = p;
- p = strtok(NULL, ",");
120
+ p = strtok_r(NULL, ",", &saveptr);
121
}
122
if (col >= 3 && matches_search(cols[2], search_term)) {
123
trim_newline(cols[1]);
0 commit comments