summaryrefslogtreecommitdiff
path: root/source/svg/svg-color.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/svg/svg-color.c')
-rw-r--r--source/svg/svg-color.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/svg/svg-color.c b/source/svg/svg-color.c
index 3fef124e..4f6031e7 100644
--- a/source/svg/svg-color.c
+++ b/source/svg/svg-color.c
@@ -230,11 +230,11 @@ svg_parse_color(fz_context *ctx, svg_document *doc, char *str, float *rgb)
if (*str == '%')
{
str ++;
- rgb[i] = atof(numberbuf) / 100.0;
+ rgb[i] = fz_atof(numberbuf) / 100.0;
}
else
{
- rgb[i] = atof(numberbuf) / 255.0;
+ rgb[i] = fz_atof(numberbuf) / 255.0;
}
}
}