aboutsummaryrefslogtreecommitdiff
path: root/g__fmt.c
diff options
context:
space:
mode:
Diffstat (limited to 'g__fmt.c')
-rw-r--r--g__fmt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/g__fmt.c b/g__fmt.c
index fbccb7d98971..6c4b3d26fb2a 100644
--- a/g__fmt.c
+++ b/g__fmt.c
@@ -56,7 +56,7 @@ g__fmt(char *b, char *s, char *se, int decpt, ULong sign, size_t blen)
if (!(s0 = decimalpoint_cache)) {
s0 = localeconv()->decimal_point;
dlen = strlen(s0);
- if ((decimalpoint_cache = (char*)malloc(strlen(s0) + 1))) {
+ if ((decimalpoint_cache = (char*)MALLOC(strlen(s0) + 1))) {
strcpy(decimalpoint_cache, s0);
s0 = decimalpoint_cache;
}