summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/util/crypto/libcrypto/crypto_sha512crypt.c4
-rw-r--r--src/util/crypto/nss/nss_sha512crypt.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/util/crypto/libcrypto/crypto_sha512crypt.c b/src/util/crypto/libcrypto/crypto_sha512crypt.c
index 88628b686..34547d08a 100644
--- a/src/util/crypto/libcrypto/crypto_sha512crypt.c
+++ b/src/util/crypto/libcrypto/crypto_sha512crypt.c
@@ -266,7 +266,7 @@ static int sha512_crypt_r(const char *key,
goto done;
}
- cp = __stpncpy(buffer, sha512_salt_prefix, SALT_PREF_SIZE);
+ cp = stpncpy(buffer, sha512_salt_prefix, SALT_PREF_SIZE);
buflen -= SALT_PREF_SIZE;
if (rounds_custom) {
@@ -284,7 +284,7 @@ static int sha512_crypt_r(const char *key,
ret = ERANGE;
goto done;
}
- cp = __stpncpy(cp, salt, salt_len);
+ cp = stpncpy(cp, salt, salt_len);
*cp++ = '$';
buflen -= salt_len + 1;
diff --git a/src/util/crypto/nss/nss_sha512crypt.c b/src/util/crypto/nss/nss_sha512crypt.c
index 2838c4716..9fedd5ec6 100644
--- a/src/util/crypto/nss/nss_sha512crypt.c
+++ b/src/util/crypto/nss/nss_sha512crypt.c
@@ -267,7 +267,7 @@ static int sha512_crypt_r(const char *key,
goto done;
}
- cp = __stpncpy(buffer, sha512_salt_prefix, SALT_PREF_SIZE);
+ cp = stpncpy(buffer, sha512_salt_prefix, SALT_PREF_SIZE);
buflen -= SALT_PREF_SIZE;
if (rounds_custom) {
@@ -285,7 +285,7 @@ static int sha512_crypt_r(const char *key,
ret = ERANGE;
goto done;
}
- cp = __stpncpy(cp, salt, salt_len);
+ cp = stpncpy(cp, salt, salt_len);
*cp++ = '$';
buflen -= salt_len + 1;