diff options
author | Nikias Bassen | 2019-11-07 05:11:12 +0100 |
---|---|---|
committer | Nikias Bassen | 2019-11-07 05:11:12 +0100 |
commit | b1b60142523e35abc92677ed346a3687cb0eb708 (patch) | |
tree | b7c108dd14244e54b2e90a19ff059732cb173dce /src/xplist.c | |
parent | 49cbc8df7672c4dd5fa0c73e9046ee91924ae4b8 (diff) | |
download | libplist-b1b60142523e35abc92677ed346a3687cb0eb708.tar.gz libplist-b1b60142523e35abc92677ed346a3687cb0eb708.tar.bz2 |
xplist: Bail out when '.' is found while checking for ',' in double to string conversion
Diffstat (limited to 'src/xplist.c')
-rw-r--r-- | src/xplist.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; } } } |