mirror of
https://github.com/postgres/postgres.git
synced 2025-08-28 18:48:04 +03:00
Fix pgproc names over 15 chars in output. Add strNcpy() function. remove some (void) casts that are unnecessary.
This commit is contained in:
@@ -80,8 +80,7 @@ verify_password(char *user, char *password, Port *port,
|
||||
/* kill the newline */
|
||||
test_pw[strlen(test_pw)-1] = '\0';
|
||||
|
||||
strncpy(salt, test_pw, 2);
|
||||
salt[2] = '\0';
|
||||
strNcpy(salt, test_pw, 2);
|
||||
|
||||
if(strcmp(user, test_user) == 0) {
|
||||
/* we're outta here one way or the other. */
|
||||
|
Reference in New Issue
Block a user