summaryrefslogtreecommitdiff
path: root/lib/ZParseNot.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ZParseNot.c')
-rw-r--r--lib/ZParseNot.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ZParseNot.c b/lib/ZParseNot.c
index d30707a..692366a 100644
--- a/lib/ZParseNot.c
+++ b/lib/ZParseNot.c
@@ -97,7 +97,8 @@ Code_t ZParseNotice(buffer,len,notice,auth,from)
}
if (__Zephyr_server) {
- if (ZReadAscii(notice->z_ascii_authent,end-ptr,authent.dat,
+ if (ZReadAscii(notice->z_ascii_authent,
+ strlen(notice->z_ascii_authent)+1,authent.dat,
notice->z_authent_len) == ZERR_BADFIELD) {
*auth = 0;
return (ZERR_NONE);