aboutsummaryrefslogtreecommitdiffstats
path: root/profile.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2014-10-04 23:29:29 +0300
committerArnold D. Robbins <arnold@skeeve.com>2014-10-04 23:29:29 +0300
commit42bcb6246432790af31958d5445cd035fe9966a5 (patch)
tree0e458b6c48556a1b86a0374c9bf900fdb31718c1 /profile.c
parentc7a0e4b598a39084c288f975a59549b6068051cf (diff)
downloadegawk-42bcb6246432790af31958d5445cd035fe9966a5.tar.gz
egawk-42bcb6246432790af31958d5445cd035fe9966a5.tar.bz2
egawk-42bcb6246432790af31958d5445cd035fe9966a5.zip
Fix --gen-pot with long strings.
Diffstat (limited to 'profile.c')
-rw-r--r--profile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/profile.c b/profile.c
index b0fbbedb..84e7f9da 100644
--- a/profile.c
+++ b/profile.c
@@ -909,11 +909,11 @@ pp_string_fp(Func_print print_func, FILE *fp, const char *in_str,
slen = strlen(str);
for (count = 0; slen > 0; slen--, str++) {
+ print_func(fp, "%c", *str);
if (++count >= BREAKPOINT && breaklines) {
print_func(fp, "%c\n%c", delim, delim);
count = 0;
- } else
- print_func(fp, "%c", *str);
+ }
}
efree(s);
}