mirror of
https://github.com/cryb-to/cryb-to.git
synced 2024-12-18 02:24:54 +00:00
Reserve room in the label buffer for the terminating NUL.
This commit is contained in:
parent
3fbaf4e647
commit
1d0f2a4ff3
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ oath_key_create(const char *label,
|
|||
|
||||
/* check label */
|
||||
if (label == NULL ||
|
||||
(labellen = strlen(label)) > OATH_MAX_LABELLEN)
|
||||
(labellen = strlen(label)) >= OATH_MAX_LABELLEN)
|
||||
return (NULL);
|
||||
|
||||
/* check key length */
|
||||
|
|
Loading…
Reference in a new issue