From 5b04f48b041926bca47a196bed31c0b4695e6d82 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 (cherry picked from commit bcc97c044266080256ef6ed0d690859677212b2b) --- src/nanosvg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nanosvg.h b/src/nanosvg.h index 93454160..e58ea5ca 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; }