aboutsummaryrefslogtreecommitdiffstats
path: root/builtin.c
diff options
context:
space:
mode:
Diffstat (limited to 'builtin.c')
-rw-r--r--builtin.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin.c b/builtin.c
index 21f295f7..67424663 100644
--- a/builtin.c
+++ b/builtin.c
@@ -3520,6 +3520,7 @@ nondec2awknum(char *str, size_t len)
} else {
decimal:
save = str[len];
+ str[len] = '\0';
retval = strtod(str, NULL);
str[len] = save;
}