projects
/
infodrom
/
newmail
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Only detect ^From_ and not '^from_' by accident
[infodrom/newmail]
/
mbox.c
diff --git
a/mbox.c
b/mbox.c
index
cb2e9f3
..
9334a19
100644
(file)
--- a/
mbox.c
+++ b/
mbox.c
@@
-237,7
+237,7
@@
int inspect_mbox(char *path, char *prefix, off_t size, int opt_flags)
#endif
priority = 0;
} else {
- if (strnc
asec
mp(buf, "From ", 5) == 0)
+ if (strncmp(buf, "From ", 5) == 0)
stringcopy (from_, buf+5, sizeof(from_));
else if (strncasecmp(buf, "From: ", 6) == 0)
stringcopy (from, buf+6, sizeof(from));