aboutsummaryrefslogtreecommitdiffstats
path: root/builtin.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2016-06-16 22:20:56 +0300
committerArnold D. Robbins <arnold@skeeve.com>2016-06-16 22:20:56 +0300
commite48a5f8c731e44fa71e8a53d57a4a47c2b8b3dc0 (patch)
tree2c3ccb9fe8e3b7c859b726932464b3cfd2980814 /builtin.c
parentf9586a3dc83144d6383f2db275532f981601426b (diff)
downloadegawk-e48a5f8c731e44fa71e8a53d57a4a47c2b8b3dc0.tar.gz
egawk-e48a5f8c731e44fa71e8a53d57a4a47c2b8b3dc0.tar.bz2
egawk-e48a5f8c731e44fa71e8a53d57a4a47c2b8b3dc0.zip
Add some comments, minor buglet fix.
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;
}