if (ok && retval)
return retval;
- return strcpy(output, "*");
+ return (char *)memcpy(output, "*", 2);
}
// Copyright (c) 1998-2014 Solar Designer
// Copyright (c) 2005-2020 Rich Felker, et al.
// SPDX-License-Identifier: MIT
+#ifndef CRYPT_BLOWFISH_H_
+#define CRYPT_BLOWFISH_H_
char *crypt_blowfish(const char *key, const char *setting, char *output);
+#endif
if (setting[0] == '$' && setting[1] == '2' && setting[3] == '$')
return crypt_blowfish(key, setting, output);
else
- return strcpy(output, "*");
+ return (char *)memcpy(output, "*", 2);
}
char *password_hash2(const char *pw, int algo, int strength)
{