aboutsummaryrefslogtreecommitdiff
path: root/3rd-party/nanosvg
diff options
context:
space:
mode:
Diffstat (limited to '3rd-party/nanosvg')
-rw-r--r--3rd-party/nanosvg/src/nanosvg.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/3rd-party/nanosvg/src/nanosvg.h b/3rd-party/nanosvg/src/nanosvg.h
index 8e58b80..931f0ed 100644
--- a/3rd-party/nanosvg/src/nanosvg.h
+++ b/3rd-party/nanosvg/src/nanosvg.h
@@ -1265,7 +1265,7 @@ static unsigned int nsvg__parseColorRGB(const char* str)
while (*str && nsvg__isdigit(*str)) str++; // skip fractional part
}
if (*str == '%') str++; else break;
- while (nsvg__isspace(*str)) str++;
+ while (*str && nsvg__isspace(*str)) str++;
if (*str == delimiter[i]) str++;
else break;
}