Pass correct buffer size to fgets().
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@309 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
@@ -209,7 +209,7 @@ BUILT_IN_DLL(pm_read)
|
||||
put_it("%s", cparse(PM_PROMPT" %W<%YSubject%W>%n $0-", "%s", h->subject));
|
||||
fseek(f, h->body_offset, SEEK_SET);
|
||||
do {
|
||||
strchop(fgets(s, 2560, f));
|
||||
strchop(fgets(s, MAX_FBUFFER_SIZE, f));
|
||||
if (ishead(s)) {
|
||||
have_head = 1;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user