author | mjm <mjm> | 2003-02-27 19:32:08 (UTC) |
---|---|---|
committer | mjm <mjm> | 2003-02-27 19:32:08 (UTC) |
commit | 18c19111466e43e91678c5a1fa50f2f561ca3257 (patch) (unidiff) | |
tree | 9f76492a3e0351a5914ada95c68fed169f3a6a29 | |
parent | fca225e970ebb629c4ac79020248a860a651bd85 (diff) | |
download | opie-18c19111466e43e91678c5a1fa50f2f561ca3257.zip opie-18c19111466e43e91678c5a1fa50f2f561ca3257.tar.gz opie-18c19111466e43e91678c5a1fa50f2f561ca3257.tar.bz2 |
fixed typo
-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 | |||
@@ -105,41 +105,41 @@ int get_ok(const char *buffer) | |||
105 | 105 | ||
106 | /* packet type already determined, skip check */ | 106 | /* packet type already determined, skip check */ |
107 | len += 2; | 107 | len += 2; |
108 | 108 | ||
109 | /* what is ok for? */ | 109 | /* what is ok for? */ |
110 | memset(temp, 0, sizeof(temp)); | 110 | memset(temp, 0, sizeof(temp)); |
111 | len += get_field(buffer + len, temp, sizeof(temp)); | 111 | len += get_field(buffer + len, temp, sizeof(temp)); |
112 | 112 | ||
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; |
122 | 122 | ||
123 | /* packet type already determined, skip check */ | 123 | /* packet type already determined, skip check */ |
124 | len += 2; | 124 | len += 2; |
125 | 125 | ||
126 | /* what is fail for? */ | 126 | /* what is fail for? */ |
127 | memset(temp, 0, sizeof(temp)); | 127 | memset(temp, 0, sizeof(temp)); |
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 | ||
138 | 138 | ||
139 | /* Send found network to UI */ | 139 | /* Send found network to UI */ |
140 | int send_network_found (const char *guihost, int guiport, void *structure) | 140 | int send_network_found (const char *guihost, int guiport, void *structure) |
141 | { | 141 | { |
142 | wl_network_t *ptr; | 142 | wl_network_t *ptr; |
143 | char buffer[2048], temp[5]; | 143 | char buffer[2048], temp[5]; |
144 | unsigned int len = 0; | 144 | unsigned int len = 0; |
145 | 145 | ||