summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e8c6efb)
raw | patch | inline | side by side (parent: e8c6efb)
author | Florian Forster <sifnfors@informatik.stud.uni-erlangen.de> | |
Wed, 11 Jun 2008 12:24:34 +0000 (14:24 +0200) | ||
committer | Florian Forster <sifnfors@informatik.stud.uni-erlangen.de> | |
Wed, 11 Jun 2008 12:24:34 +0000 (14:24 +0200) |
src/nginx.c | patch | blob | history |
diff --git a/src/nginx.c b/src/nginx.c
index a44e8a5778bb9de85802c599a91574745048458e..0e3b843d2d7780c5d91a620f3d59a1744cdd53e8 100644 (file)
--- a/src/nginx.c
+++ b/src/nginx.c
char *ptr;
char *lines[16];
int lines_num = 0;
+ char *saveptr;
char *fields[16];
int fields_num;
}
ptr = nginx_buffer;
- while ((lines[lines_num] = strtok (ptr, "\n\r")) != NULL)
+ saveptr = NULL;
+ while ((lines[lines_num] = strtok_r (ptr, "\n\r", &saveptr)) != NULL)
{
ptr = NULL;
lines_num++;