author | max <max> | 2003-02-07 10:01:23 (UTC) |
---|---|---|
committer | max <max> | 2003-02-07 10:01:23 (UTC) |
commit | e73acff447949c3e87da87e0749ccefac448d650 (patch) (side-by-side diff) | |
tree | b68e69e04fd4730c0c0adbc2c506d98d4747ba99 | |
parent | 1561b2314308255c1fb181f1c979b38962c51373 (diff) | |
download | opie-e73acff447949c3e87da87e0749ccefac448d650.zip opie-e73acff447949c3e87da87e0749ccefac448d650.tar.gz opie-e73acff447949c3e87da87e0749ccefac448d650.tar.bz2 |
Bugfix memset
-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 @@ -45,26 +45,25 @@ int get_field(const char *buffer, char *out, int maxlen) return (atoi(len) + 3); } /* Send found network to UI */ int send_network_found (const char *guihost, int guiport, void *structure) { wl_network_t *ptr; char buffer[2048], temp[5]; unsigned int len = 0; ptr = (wl_network_t *)structure; - memcpy(buffer, 0, sizeof(buffer)); - + memset(buffer,0,sizeof(buffer)); /* Type = Found new net (without length field) */ memset(temp, 0, sizeof(temp)); snprintf(temp, sizeof(temp), "%.2d", WL_NETFOUND); memcpy(buffer, temp, 2); len += 2; /* Set Net-type */ memset(temp, 0, sizeof(temp)); snprintf(temp, sizeof(temp), "%d", ptr->net_type); len += add_field(buffer + len, temp, 1); /* Set channel */ |