diff options
Diffstat (limited to 'src/qmail-showctl.c')
-rw-r--r-- | src/qmail-showctl.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/qmail-showctl.c b/src/qmail-showctl.c index 7aaeb95..6339707 100644 --- a/src/qmail-showctl.c +++ b/src/qmail-showctl.c @@ -74,12 +74,13 @@ void do_str(char *fn, int flagme, char *def, char *pre) if (!stralloc_copys(&line, def)) { buffer_puts(buffer_1, "Oops! Out of memory.\n"); break; - }; - if (flagme && meok) + } + if (flagme && meok) { if (!stralloc_copy(&line, &me)) { buffer_puts(buffer_1, "Oops! Out of memory.\n"); break; - }; + } + } case 1: buffer_puts(buffer_1, pre); safeput(line.s, line.len); @@ -106,7 +107,7 @@ int do_lst(char *fn, char *def, char *pre, char *post) case 1: buffer_puts(buffer_1, "\n"); i = 0; - for (j = 0; j < line.len; ++j) + for (j = 0; j < line.len; ++j) { if (!line.s[j]) { buffer_puts(buffer_1, pre); safeput(line.s + i, j - i); @@ -114,6 +115,7 @@ int do_lst(char *fn, char *def, char *pre, char *post) buffer_puts(buffer_1, "\n"); i = j + 1; } + } return 1; default: buffer_puts(buffer_1, "Oops! Trouble reading this file.\n"); return -1; } |