aboutsummaryrefslogtreecommitdiffstats
path: root/extcap
diff options
context:
space:
mode:
Diffstat (limited to 'extcap')
-rw-r--r--extcap/androiddump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/extcap/androiddump.c b/extcap/androiddump.c
index 070d3e146a..22bc99fba6 100644
--- a/extcap/androiddump.c
+++ b/extcap/androiddump.c
@@ -540,7 +540,7 @@ static int add_android_interfaces(struct interface_t **interface_list,
pos = strchr(pos, '\t');
result = (int) (pos - prev_pos);
pos = strchr(pos, '\n') + 1;
- if (result > (int) sizeof(serial_number)) {
+ if (result >= (int) sizeof(serial_number)) {
fprintf(stderr, "WARNING: Serial number too long, ignore device\n");
continue;
}