diff options
Diffstat (limited to 'lib/ZSendNot.c')
-rw-r--r-- | lib/ZSendNot.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/ZSendNot.c b/lib/ZSendNot.c index e8cc40f..a391002 100644 --- a/lib/ZSendNot.c +++ b/lib/ZSendNot.c @@ -23,13 +23,12 @@ Code_t ZSendNotice(notice) char *buffer; int len; - buffer = (char *)malloc(BUFSIZ); + buffer = (char *)malloc(Z_MAXPKTLEN); if (!buffer) return (ZERR_NOMEM); - len = BUFSIZ; - - if ((retval = ZFormatNotice(notice,buffer,BUFSIZ,&len)) < 0) { + if ((retval = ZFormatNotice(notice,buffer,Z_MAXPKTLEN,&len)) != + ZERR_NONE) { free(buffer); return (retval); } |