File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 2727#include "prototypes.h"
2828#include "shadowlog.h"
2929#include "string/strcmp/streq.h"
30+ #include "string/strcpy/strtcat.h"
3031
3132
3233#if (defined CRYPT_GENSALT_IMPLEMENTS_AUTO_ENTROPY && \
@@ -443,12 +444,8 @@ static /*@observer@*/const char *gensalt (size_t salt_size)
443444
444445 return retval ;
445446#else /* USE_XCRYPT_GENSALT */
446- /* Check if the result buffer is long enough. */
447- assert (GENSALT_SETTING_SIZE > strlen (result ) + salt_len );
448447
449- /* Concatenate a pseudo random salt. */
450- strncat (result , gensalt (salt_len ),
451- GENSALT_SETTING_SIZE - strlen (result ) - 1 );
448+ assert (STRTCAT (result , gensalt (salt_len )) != -1 );
452449
453450 return result ;
454451#endif /* USE_XCRYPT_GENSALT */
You can’t perform that action at this time.
0 commit comments