1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-09 14:28:12 +00:00

Case-insensitive string algorithm comparison

This commit is contained in:
elbandi 2016-02-12 18:54:35 +01:00
parent 7cee9c6660
commit 85290b21d8

View File

@ -1051,7 +1051,7 @@ void copy_algorithm_settings(algorithm_t* dest, const char* algo)
// Find algorithm settings and copy // Find algorithm settings and copy
for (src = algos; src->name; src++) for (src = algos; src->name; src++)
{ {
if (strcmp(src->name, algo) == 0) if (strcasecmp(src->name, algo) == 0)
{ {
strcpy(dest->name, src->name); strcpy(dest->name, src->name);
dest->kernelfile = src->kernelfile; dest->kernelfile = src->kernelfile;