style: whitespace fixes

Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
This commit is contained in:
Hiltjo Posthuma
2014-04-01 15:26:10 +02:00
committed by sin
parent ce28f6ca90
commit f7403ce6c6
4 changed files with 8 additions and 13 deletions

View File

@@ -109,10 +109,10 @@ parseheader(FILE *fp, const char *s, const char *header, mode_t *mode, char **fn
*q++ = '\0';
/* now mode should be null terminated, q points to fname */
parsemode(p, mode);
n = strlen(q);
while (n > 0 && (q[n - 1] == '\n' || q[n - 1] == '\r'))
q[--n] = '\0';
if (n > 0)
n = strlen(q);
while (n > 0 && (q[n - 1] == '\n' || q[n - 1] == '\r'))
q[--n] = '\0';
if (n > 0)
*fname = q;
}