commit - 15a2fabe4d49f7c280b90dcce141c15804dbc37f
commit + abed501384707cf7174ab3ad1ec6f5ea22fd6905
blob - ae6e56540ceb9ca63ab56bfd40d22810c7e1fe64
blob + 72a923a7470f99938911c3a9b7da1edd99d2fb53
--- conf.c
+++ conf.c
if ((conf = fopen(tmpfile, "r")) != NULL) {
fprintf(output, "%s%s rules\n", delim, name);
for (;;) {
+ char *s;
if(fgets(tmp_str, TMPSIZ, conf) == NULL)
break;
if(tmp_str[0] == 0)
break;
- fprintf(output, "%s %s", delim, tmp_str);
+ s = &tmp_str[0];
+ /* Avoid re-indenting indented lines even further. */
+ if (*s == ' ')
+ s++;
+ fprintf(output, "%s %s", delim, s);
}
fclose(conf);
fprintf(output, "%s!\n", delim);