aboutsummaryrefslogtreecommitdiffstats
path: root/src/eap_peer/eap_methods.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/eap_peer/eap_methods.c')
-rw-r--r--src/eap_peer/eap_methods.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eap_peer/eap_methods.c b/src/eap_peer/eap_methods.c
index 4998567..1bdd81e 100644
--- a/src/eap_peer/eap_methods.c
+++ b/src/eap_peer/eap_methods.c
@@ -103,7 +103,7 @@ size_t eap_get_names(char *buf, size_t buflen)
for (m = eap_methods; m; m = m->next) {
ret = os_snprintf(pos, end - pos, "%s%s",
m == eap_methods ? "" : " ", m->name);
- if (ret < 0 || ret >= end - pos)
+ if (os_snprintf_error(end - pos, ret))
break;
pos += ret;
}