mirror of
https://github.com/cryb-to/cryb-to.git
synced 2024-11-15 02:05:40 +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 */
|
/* check label */
|
||||||
if (label == NULL ||
|
if (label == NULL ||
|
||||||
(labellen = strlen(label)) > OATH_MAX_LABELLEN)
|
(labellen = strlen(label)) >= OATH_MAX_LABELLEN)
|
||||||
return (NULL);
|
return (NULL);
|
||||||
|
|
||||||
/* check key length */
|
/* check key length */
|
||||||
|
|
Loading…
Reference in a new issue