aboutsummaryrefslogtreecommitdiffstats
path: root/builtin.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2016-06-16 22:21:30 +0300
committerArnold D. Robbins <arnold@skeeve.com>2016-06-16 22:21:30 +0300
commitb5c92588dc5972fab63ee2b2b8983a74e6fa5872 (patch)
treefb566835d746cfb1dcfb9a530fdab67a954ecfbb /builtin.c
parentddb62efafb5659dae532089af83350f066446424 (diff)
parente48a5f8c731e44fa71e8a53d57a4a47c2b8b3dc0 (diff)
downloadegawk-b5c92588dc5972fab63ee2b2b8983a74e6fa5872.tar.gz
egawk-b5c92588dc5972fab63ee2b2b8983a74e6fa5872.tar.bz2
egawk-b5c92588dc5972fab63ee2b2b8983a74e6fa5872.zip
Merge branch 'gawk-4.1-stable'
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 888fa10c..2d7101d8 100644
--- a/builtin.c
+++ b/builtin.c
@@ -3639,6 +3639,7 @@ nondec2awknum(char *str, size_t len)
} else {
decimal:
save = str[len];
+ str[len] = '\0';
retval = strtod(str, NULL);
str[len] = save;
}