From bcc97c044266080256ef6ed0d690859677212b2b Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Sat, 21 Dec 2024 21:10:50 +0300 Subject: [PATCH] nanosvg.h: update from mainstream --- src/nanosvg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nanosvg.h b/src/nanosvg.h index 64d05d68..1049fe4e 100644 --- a/src/nanosvg.h +++ b/src/nanosvg.h @@ -1296,7 +1296,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; }