projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b0886e
)
spv-light-decoder: Fix check for valid decimal point characters.
author
Ben Pfaff
<blp@cs.stanford.edu>
Sun, 7 Feb 2021 03:45:58 +0000
(19:45 -0800)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Sun, 7 Feb 2021 03:45:58 +0000
(19:45 -0800)
Found by cppcheck.
Reported by John Darrington.
src/output/spv/spv-light-decoder.c
patch
|
blob
|
history
diff --git
a/src/output/spv/spv-light-decoder.c
b/src/output/spv/spv-light-decoder.c
index 520cb2b0a066698fe6263acb2f0894a84888306b..58b5ddbe0294019cf9988c9ec1c1fb402fb12fdb 100644
(file)
--- a/
src/output/spv/spv-light-decoder.c
+++ b/
src/output/spv/spv-light-decoder.c
@@
-919,7
+919,7
@@
decode_spvlb_table (const struct spvlb_table *in, struct pivot_table **outp)
if (epoch >= 1000 && epoch <= 9999)
out->settings.epoch = epoch;
char decimal = in->formats->y0->decimal;
- if (decimal == '.' || decimal == '
.
')
+ if (decimal == '.' || decimal == '
,
')
out->settings.decimal = decimal;
else
{