summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/svgtiny.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/svgtiny.c b/src/svgtiny.c
index d87a862..5a6e988 100644
--- a/src/svgtiny.c
+++ b/src/svgtiny.c
@@ -917,8 +917,10 @@ void svgtiny_parse_paint_attributes(const xmlNode *node,
s += 13;
while (*s == ' ')
s++;
- state->stroke_width = svgtiny_parse_length(s,
+ value = strndup(s, strcspn(s, "; "));
+ state->stroke_width = svgtiny_parse_length(value,
state->viewport_width, *state);
+ free(value);
}
}
}