1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-26 22:44:21 +00:00

Case-insensitive string algorithm comparison

This commit is contained in:
elbandi 2016-02-12 18:54:35 +01:00
parent ba09bdef7c
commit d70fe9be99

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;