From 18c19111466e43e91678c5a1fa50f2f561ca3257 Mon Sep 17 00:00:00 2001 From: mjm Date: Thu, 27 Feb 2003 19:32:08 +0000 Subject: fixed typo --- diff --git a/noncore/net/wellenreiter/libwellenreiter/source/wl_proto.cc b/noncore/net/wellenreiter/libwellenreiter/source/wl_proto.cc index dcdc16b..6c3846f 100644 --- a/noncore/net/wellenreiter/libwellenreiter/source/wl_proto.cc +++ b/noncore/net/wellenreiter/libwellenreiter/source/wl_proto.cc @@ -114,7 +114,7 @@ int get_ok(const char *buffer) } /* put failmessage into buffer */ -int get_fail(char *out, const char *buffer, size_t len) +int get_fail(char *out, const char *buffer, size_t bufflen) { char temp[5]; int error=0; @@ -129,8 +129,8 @@ int get_fail(char *out, const char *buffer, size_t len) error=atoi(temp); /* get errorstring and fill into buffer */ - memset(out, 0, len); - len += get_field(buffer + len, out, len - 1); + memset(out, 0, bufflen); + len += get_field(buffer + len, out, bufflen - 1); return error; } -- cgit v0.9.0.2