System/Libraries/Html/Renderer: Increase size of work buffer for @set_css_distance to avoid crashing

This commit is contained in:
Alec Murphy 2025-05-02 18:19:09 -04:00
parent 569e2e4b70
commit 7c58320ac5

View file

@ -390,7 +390,7 @@ U0 @set_css_distance(U8* str, F64* value, I64* type)
*type = CSS_DISTANCE_AUTO;
return;
}
U8 buf[16];
U8 buf[128];
StrCpy(buf, str);
if (String.EndsWith("px", buf)) {
buf[StrLen(buf) - 2] = NULL;