mirror of
https://github.com/moparisthebest/curl
synced 2025-02-28 17:31:46 -05:00
Added #include <string.h> and removed a silly mistakenly added ,
This commit is contained in:
parent
56f6815d3d
commit
8d52681e1d
@ -25,6 +25,7 @@
|
|||||||
|
|
||||||
#ifndef HAVE_STRTOK_R
|
#ifndef HAVE_STRTOK_R
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
char *
|
char *
|
||||||
Curl_strtok_r(char *ptr, const char *sep, char **end)
|
Curl_strtok_r(char *ptr, const char *sep, char **end)
|
||||||
@ -51,7 +52,7 @@ Curl_strtok_r(char *ptr, const char *sep, char **end)
|
|||||||
|
|
||||||
if (**end) {
|
if (**end) {
|
||||||
/* the end is not a null byte */
|
/* the end is not a null byte */
|
||||||
**end = '\0';, /* zero terminate it! */
|
**end = '\0'; /* zero terminate it! */
|
||||||
++*end; /* advance the last pointer to beyond the null byte */
|
++*end; /* advance the last pointer to beyond the null byte */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user