summaryrefslogtreecommitdiff
path: root/lib/ZSendList.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ZSendList.c')
-rw-r--r--lib/ZSendList.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ZSendList.c b/lib/ZSendList.c
index dc21d63..068d024 100644
--- a/lib/ZSendList.c
+++ b/lib/ZSendList.c
@@ -25,12 +25,12 @@ Code_t ZSendList(notice,list,nitems)
char *buffer;
int len;
- buffer = (char *)malloc(BUFSIZ);
+ buffer = (char *)malloc(Z_MAXPKTLEN);
if (!buffer)
return (ZERR_NOMEM);
if ((retval = ZFormatNoticeList(notice,list,nitems,buffer,
- BUFSIZ,&len)) < 0) {
+ Z_MAXPKTLEN,&len)) != ZERR_NONE) {
free(buffer);
return (retval);
}