bugfix: off-by-one in query option

This commit is contained in:
Olaf Bergmann committed 2011-06-23 18:12:56 +02:00
1 parent 3f8ff29ecf
commit 7d674d9dcf
1 file changed
+1
+1
View File
@@ -154,6 +154,7 @@ coap_split_uri(unsigned char *str_var, size_t len, coap_uri_t *uri) {
/* Uri_Query */
if (len && *p == '?') {
++p;
--len;
COAP_SET_STR(&uri->query, len, p);
len = 0;
}