summaryrefslogtreecommitdiffstats
path: root/out.c
diff options
context:
space:
mode:
Diffstat (limited to 'out.c')
-rw-r--r--out.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/out.c b/out.c
index 8cc80e64..5d7ba217 100644
--- a/out.c
+++ b/out.c
@@ -527,7 +527,7 @@ tblcalc_number(struct rofftbl *tbl, struct roffcol *col,
psz = (*tbl->slen)(buf, tbl->arg);
- if (NULL != (cp = strchr(str, tp->decimal))) {
+ if (NULL != (cp = strrchr(str, tp->decimal))) {
buf[1] = '\0';
for (ssz = 0, i = 0; cp != &str[i]; i++) {
buf[0] = str[i];