diff --git a/aqhome/http/httprequest.c b/aqhome/http/httprequest.c index 7328500..e878236 100644 --- a/aqhome/http/httprequest.c +++ b/aqhome/http/httprequest.c @@ -643,7 +643,7 @@ int _unescapeUrlEncoded(const char *src, unsigned int srclen, char *buffer, unsi size=0; - while (*src && srclen>0) { + while (srclen>0 && *src) { unsigned char x; x=(unsigned char)*src;