diff options
author | Maxim Sobolev <sobomax@FreeBSD.org> | 2002-05-23 11:32:33 +0000 |
---|---|---|
committer | Maxim Sobolev <sobomax@FreeBSD.org> | 2002-05-23 11:32:33 +0000 |
commit | ef7c6406126bf4f88c46f97b91db3baebb2af7ee (patch) | |
tree | 2e3e2c9c62d9a897a63c88a934c325e90a1233c0 /russian/messarge | |
parent | Simple and useful FAX frontend program working with efax. (diff) |
Unbreak on bento.
PR: 38437
Submitted by: maintainer
Notes
Notes:
svn path=/head/; revision=59783
Diffstat (limited to 'russian/messarge')
-rw-r--r-- | russian/messarge/files/patch-mims | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/russian/messarge/files/patch-mims b/russian/messarge/files/patch-mims new file mode 100644 index 000000000000..84bb2182ae9d --- /dev/null +++ b/russian/messarge/files/patch-mims @@ -0,0 +1,29 @@ +--- mims.c Mon May 29 03:56:00 2000 ++++ mims.c Thu May 23 04:07:31 2002 +@@ -323,7 +323,7 @@ + else putchar(p[i]); + } }; + +-char * strnstr(char *bs, off_t bl, char *s) ++char * strn_str(char *bs, off_t bl, char *s) + { char *p = bs; + while ((p = memchr(p, s[0], bs + bl - p))) + if (strlen(s) > (bs + bl - p) || strncmp(p, s, strlen(s))) p++; +@@ -335,7 +335,7 @@ + { char *p; + off_t l; + p = bs; +- while ((p = strnstr(p, bl, "\n--"))) ++ while ((p = strn_str(p, bl, "\n--"))) + { p += 3; + l = bs + bl - p; + if (!strncmp(p, ss, (l > sl) ? sl : l)) return(p - 2); +@@ -403,7 +403,7 @@ + unsigned charset, encapsulation; + enum quost q_st; + char *Fnam = NULL; +- begin = strnstr(begin, len, "\n\n"); ++ begin = strn_str(begin, len, "\n\n"); + if (begin) + { begin += 2; + headlen = begin - headers; |