summaryrefslogtreecommitdiffstats
path: root/swedish.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-09-10 17:33:40 +0200
committerMattias Andrée <maandree@kth.se>2021-09-10 17:33:52 +0200
commit9279dbb2741de7bc599699a95728b1b7c2b6790a (patch)
treec09d02cdaeff78be8f6a89d49014a3640bec870c /swedish.c
parentAdd multicall binary (diff)
downloadlibnumtext-9279dbb2741de7bc599699a95728b1b7c2b6790a.tar.gz
libnumtext-9279dbb2741de7bc599699a95728b1b7c2b6790a.tar.bz2
libnumtext-9279dbb2741de7bc599699a95728b1b7c2b6790a.tar.xz
m + add card2ord
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'swedish.c')
-rw-r--r--swedish.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/swedish.c b/swedish.c
index 4fec515..b4b1207 100644
--- a/swedish.c
+++ b/swedish.c
@@ -639,6 +639,10 @@ libnumtext_card2ord_swedish__(char *outbuf, size_t outbuf_size, const char *num,
}
length += 1;
+ if (outbuf_size)
+ outbuf[length < outbuf_size ? length : outbuf_size] = '\0';
+ length += 1;
+
return (ssize_t)length;
einval: