Skip to content

Commit ac8b7ff

Browse files
committed
Fix: prevent warning about ascii64 buffer being too small
The compiler puts a NULL terminator on the string, so the ascii64 array was one too short. Showing up because gcc-15 warns about it.
1 parent 1e32fee commit ac8b7ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

util/passwordbasedauthentication.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ is_prefix_supported (const char *id)
4141
#ifndef EXTERNAL_CRYPT_GENSALT_R
4242

4343
// used printables within salt
44-
const char ascii64[64] =
44+
const char ascii64[] =
4545
"./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
4646

4747
/* Tries to get BUFLEN random bytes into BUF; returns 0 on success. */

0 commit comments

Comments
 (0)