From f3984b741312628f240738265ad35532db76b27c Mon Sep 17 00:00:00 2001 From: Jens Steube Date: Fri, 27 Oct 2017 01:28:55 +0200 Subject: [PATCH] Start with the original device name --- src/tuningdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tuningdb.c b/src/tuningdb.c index 6be37028e..f5de4778a 100644 --- a/src/tuningdb.c +++ b/src/tuningdb.c @@ -342,7 +342,7 @@ tuning_db_entry_t *tuning_db_search (hashcat_ctx_t *hashcat_ctx, const char *dev char *alias_name = NULL; - for (i = device_name_length - 1; i >= 1; i--) + for (i = device_name_length; i >= 1; i--) { device_name_nospace[i] = 0;