more braces
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5226 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -169,11 +169,12 @@ otp_parse_hex (OtpKey key, char *s)
|
||||
|
||||
b = buf;
|
||||
while (*s) {
|
||||
if (strchr ("0123456789ABCDEFabcdef", *s))
|
||||
if (strchr ("0123456789ABCDEFabcdef", *s)) {
|
||||
if (b - buf >= 16)
|
||||
return -1;
|
||||
else
|
||||
*b++ = tolower(*s);
|
||||
}
|
||||
s++;
|
||||
}
|
||||
*b = '\0';
|
||||
|
Reference in New Issue
Block a user