summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/wellenreiter/libwellenreiter/source/wl_proto.cc6
1 files changed, 3 insertions, 3 deletions
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
@@ -113,9 +113,9 @@ int get_ok(const char *buffer)
return atoi(temp);
}
/* 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;
unsigned int len = 0;
@@ -128,10 +128,10 @@ int get_fail(char *out, const char *buffer, size_t len)
len += get_field(buffer + len, temp, sizeof(temp));
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;
}