Browse Source

Case-insensitive string algorithm comparison

develop
elbandi 9 years ago
parent
commit
85290b21d8
  1. 2
      algorithm.c

2
algorithm.c

@ -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;

Loading…
Cancel
Save