-rw-r--r-- | noncore/net/wellenreiter/libwellenreiter/source/wl_proto.cc | 6 |
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) | |||
113 | return atoi(temp); | 113 | return atoi(temp); |
114 | } | 114 | } |
115 | 115 | ||
116 | /* put failmessage into buffer */ | 116 | /* put failmessage into buffer */ |
117 | int get_fail(char *out, const char *buffer, size_t len) | 117 | int get_fail(char *out, const char *buffer, size_t bufflen) |
118 | { | 118 | { |
119 | char temp[5]; | 119 | char temp[5]; |
120 | int error=0; | 120 | int error=0; |
121 | unsigned int len = 0; | 121 | unsigned int len = 0; |
@@ -128,10 +128,10 @@ int get_fail(char *out, const char *buffer, size_t len) | |||
128 | len += get_field(buffer + len, temp, sizeof(temp)); | 128 | len += get_field(buffer + len, temp, sizeof(temp)); |
129 | error=atoi(temp); | 129 | error=atoi(temp); |
130 | 130 | ||
131 | /* get errorstring and fill into buffer */ | 131 | /* get errorstring and fill into buffer */ |
132 | memset(out, 0, len); | 132 | memset(out, 0, bufflen); |
133 | len += get_field(buffer + len, out, len - 1); | 133 | len += get_field(buffer + len, out, bufflen - 1); |
134 | 134 | ||
135 | return error; | 135 | return error; |
136 | } | 136 | } |
137 | 137 | ||