commit 550356cc72c891e31f7f12e1c57dce69131bdefb parent 0a498325357cc3f669606ac16d746c54277928c9 Author: Tomas Hlavaty <tom@logand.com> Date: Tue, 6 Sep 2011 09:14:23 +0200 fix head() Diffstat:
M | text2html.c | | | 3 | ++- |
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/text2html.c b/text2html.c @@ -21,7 +21,8 @@ static int head(char *what, char *buf, char *end) { while(*what && buf < end) { if(*what++ != *buf++) return 0; } - return 1; + return !*what; +} } static char *find(char what, char *buf, char *end) {