Diffstat (limited to 'noncore/net/wellenreiter/libwellenreiter/source/wl_proto.cc') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/wellenreiter/libwellenreiter/source/wl_proto.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/noncore/net/wellenreiter/libwellenreiter/source/wl_proto.cc b/noncore/net/wellenreiter/libwellenreiter/source/wl_proto.cc index 0630d04..664ba92 100644 --- a/noncore/net/wellenreiter/libwellenreiter/source/wl_proto.cc +++ b/noncore/net/wellenreiter/libwellenreiter/source/wl_proto.cc @@ -6,2 +6,3 @@ +#include "wl_types.hh" #include "wl_proto.hh" @@ -36,3 +37,3 @@ int get_field(const char *buffer, char *out, int maxlen) - if(atoi(len)-3 > maxlen -1) + if(atoi(len) > maxlen -1) memcpy(out, buffer + 3, maxlen - 1); @@ -56,3 +57,3 @@ int send_network_found (const char *guihost, int guiport, void *structure) memset(temp, 0, sizeof(temp)); - snprintf(temp, sizeof(temp), "%.2d", NETFOUND); + snprintf(temp, sizeof(temp), "%.2d", WL_NETFOUND); memcpy(buffer, temp, 2); @@ -100,3 +101,3 @@ int get_network_found (void *structure, const char *buffer) ptr = (wl_network_t *)structure; - + /* packet type already determined, skip check */ |