projects
/
mech_eap.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Check os_snprintf() result more consistently - automatic 2
[mech_eap.git]
/
src
/
utils
/
common.c
diff --git
a/src/utils/common.c
b/src/utils/common.c
index
1517a48
..
422b476
100644
(file)
--- a/
src/utils/common.c
+++ b/
src/utils/common.c
@@
-755,7
+755,7
@@
char * freq_range_list_str(const struct wpa_freq_range_list *list)
res = os_snprintf(pos, end - pos, "%s%u-%u",
i == 0 ? "" : ",",
range->min, range->max);
- if (
res < 0 || res > end - pos
) {
+ if (
os_snprintf_error(end - pos, res)
) {
os_free(buf);
return NULL;
}