mirror of
https://github.com/json-c/json-c.git
synced 2026-03-26 08:29:06 +08:00
Fixed typos
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
static void string_replace_all_occurrences_with_char(char *s, const char *occur, char repl_char)
|
||||
{
|
||||
int slen = strlen(s);
|
||||
int skip = strlen(occur) - 1; /* length of the occurence, minus the char we're replacing */
|
||||
int skip = strlen(occur) - 1; /* length of the occurrence, minus the char we're replacing */
|
||||
char *p = s;
|
||||
while ((p = strstr(p, occur))) {
|
||||
*p = repl_char;
|
||||
|
||||
Reference in New Issue
Block a user