diff options
Diffstat (limited to 'apps/gui')
-rw-r--r-- | apps/gui/wps_parser.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/gui/wps_parser.c b/apps/gui/wps_parser.c index 22b161155e..e66543d8c7 100644 --- a/apps/gui/wps_parser.c +++ b/apps/gui/wps_parser.c | |||
@@ -753,7 +753,8 @@ static int parse_setting(const char *wps_bufptr, | |||
753 | if (settings[i].cfg_name && | 753 | if (settings[i].cfg_name && |
754 | !strncmp(settings[i].cfg_name,ptr,end-ptr) && | 754 | !strncmp(settings[i].cfg_name,ptr,end-ptr) && |
755 | /* prevent matches on cfg_name prefixes */ | 755 | /* prevent matches on cfg_name prefixes */ |
756 | strlen(settings[i].cfg_name)==end-ptr) break; | 756 | strlen(settings[i].cfg_name)==(size_t)(end-ptr)) |
757 | break; | ||
757 | if (i == nb_settings) | 758 | if (i == nb_settings) |
758 | return WPS_ERROR_INVALID_PARAM; | 759 | return WPS_ERROR_INVALID_PARAM; |
759 | 760 | ||