From 6558253d7200d8221bb7f3f3ac29e48a68223335 Mon Sep 17 00:00:00 2001 From: unix-ninja Date: Fri, 19 Oct 2018 15:37:02 -0400 Subject: [PATCH] Don't cause memory leaks... --- src/hashes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hashes.c b/src/hashes.c index 11676630d..b451c4b23 100644 --- a/src/hashes.c +++ b/src/hashes.c @@ -288,7 +288,7 @@ void check_hash (hashcat_ctx_t *hashcat_ctx, hc_device_param_t *device_param, pl plain_len = strlen ((const char *) temp_buf); // copy the base32 content into our plain buffer - plain_ptr = (u8 *) strdup ((const char *) temp_ptr); + strncpy ((char *) plain_ptr, (char *) temp_ptr, sizeof (plain_buf)); } // crackpos