diff --git a/stb_include.h b/stb_include.h index 7bdf7c4..5d18764 100644 --- a/stb_include.h +++ b/stb_include.h @@ -249,11 +249,11 @@ char *stb_include_strings(char **strs, int count, char *inject, char *path_to_in char *result; int i; size_t length=0; - for (i=0; i < count; ++count) + for (i=0; i < count; ++i) length += strlen(strs[i]); text = (char *) malloc(length+1); length = 0; - for (i=0; i < count; ++count) { + for (i=0; i < count; ++i) { strcpy(text + length, strs[i]); length += strlen(strs[i]); }