From b1b60142523e35abc92677ed346a3687cb0eb708 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Thu, 7 Nov 2019 05:11:12 +0100 Subject: xplist: Bail out when '.' is found while checking for ',' in double to string conversion --- src/xplist.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/xplist.c b/src/xplist.c index fa6bb6d..a7d52e5 100644 --- a/src/xplist.c +++ b/src/xplist.c @@ -117,6 +117,8 @@ static size_t dtostr(char *buf, size_t bufsize, double realval) if (buf[i] == ',') { buf[i] = '.'; break; + } else if (buf[i] == '.') { + break; } } } -- cgit v1.1-32-gdbae