diff options
Diffstat (limited to 'hcid/storage.c')
-rw-r--r-- | hcid/storage.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hcid/storage.c b/hcid/storage.c index 31f7eb62..ca7a7d07 100644 --- a/hcid/storage.c +++ b/hcid/storage.c @@ -495,7 +495,7 @@ int read_pin_code(const bdaddr_t *local, const bdaddr_t *peer, char *pin) if (!bacmp(&bdaddr, peer)) { strncpy(pin, str, 16); - err = 0; + err = strlen(pin); break; } |