summaryrefslogtreecommitdiffhomepage
path: root/ir/libcore
diff options
context:
space:
mode:
authorMartin Haaß <haass@ira.uka.de>2013-09-05 17:47:13 +0200
committerMatthias Braun <matze@braunis.de>2013-09-13 08:57:06 +0200
commit0070a44dbde8da9d6295b98cc390107f949c9fc3 (patch)
treeeffe8f2cbd452bb283e378942b24a0b09a0aebed /ir/libcore
parent61e690a1121a96ce23d06005a1d5d4e68ea4d52d (diff)
Fixed bug in libcore: lc_evpprintf reports wrong string length
Diffstat (limited to 'ir/libcore')
-rw-r--r--ir/libcore/lc_printf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ir/libcore/lc_printf.c b/ir/libcore/lc_printf.c
index f944b38..8ebcf17 100644
--- a/ir/libcore/lc_printf.c
+++ b/ir/libcore/lc_printf.c
@@ -335,7 +335,7 @@ int lc_evpprintf(const lc_arg_env_t *env, lc_appendable_t *app, const char *fmt,
const char *s = strchr(fmt, '%');
/* Emit the text before the first % was found */
- lc_appendable_snadd(app, fmt, (s ? s : last) - fmt);
+ res += lc_appendable_snadd(app, fmt, (s ? s : last) - fmt);
while (s != NULL) {
lc_arg_value_t val;