summaryrefslogtreecommitdiff
path: root/src/libwpactrl/wpactrl_update.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libwpactrl/wpactrl_update.c')
-rw-r--r--src/libwpactrl/wpactrl_update.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libwpactrl/wpactrl_update.c b/src/libwpactrl/wpactrl_update.c
index a116d50..5dfefea 100644
--- a/src/libwpactrl/wpactrl_update.c
+++ b/src/libwpactrl/wpactrl_update.c
@@ -18,7 +18,7 @@ static inline int validate (char const *s, size_t len)
if (!memchr("123456789", s[1], 9)) return 0 ;
if (s[2] != '>') return 0 ;
if (strnlen(s, len) < len) return 0 ;
- return s[len-1] == '\n' ;
+ return 1 ;
}
int wpactrl_update (wpactrl_t *a)