-rw-r--r-- | noncore/net/wellenreiter/libwellenreiter/source/wl_proto.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/noncore/net/wellenreiter/libwellenreiter/source/wl_proto.cc b/noncore/net/wellenreiter/libwellenreiter/source/wl_proto.cc index 67dfc02..0d0f075 100644 --- a/noncore/net/wellenreiter/libwellenreiter/source/wl_proto.cc +++ b/noncore/net/wellenreiter/libwellenreiter/source/wl_proto.cc | |||
@@ -49,18 +49,17 @@ int get_field(const char *buffer, char *out, int maxlen) | |||
49 | int send_network_found (const char *guihost, int guiport, void *structure) | 49 | int send_network_found (const char *guihost, int guiport, void *structure) |
50 | { | 50 | { |
51 | wl_network_t *ptr; | 51 | wl_network_t *ptr; |
52 | char buffer[2048], temp[5]; | 52 | char buffer[2048], temp[5]; |
53 | unsigned int len = 0; | 53 | unsigned int len = 0; |
54 | 54 | ||
55 | ptr = (wl_network_t *)structure; | 55 | ptr = (wl_network_t *)structure; |
56 | 56 | ||
57 | memcpy(buffer, 0, sizeof(buffer)); | 57 | memset(buffer,0,sizeof(buffer)); |
58 | |||
59 | /* Type = Found new net (without length field) */ | 58 | /* Type = Found new net (without length field) */ |
60 | memset(temp, 0, sizeof(temp)); | 59 | memset(temp, 0, sizeof(temp)); |
61 | snprintf(temp, sizeof(temp), "%.2d", WL_NETFOUND); | 60 | snprintf(temp, sizeof(temp), "%.2d", WL_NETFOUND); |
62 | memcpy(buffer, temp, 2); | 61 | memcpy(buffer, temp, 2); |
63 | len += 2; | 62 | len += 2; |
64 | 63 | ||
65 | /* Set Net-type */ | 64 | /* Set Net-type */ |
66 | memset(temp, 0, sizeof(temp)); | 65 | memset(temp, 0, sizeof(temp)); |