]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Map option names to lowercase when hashing.
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Fri, 27 Apr 2007 11:08:57 +0000 (11:08 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Fri, 27 Apr 2007 11:08:57 +0000 (11:08 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@6478 7a7537e8-13f0-0310-91df-b6672ffda945

cups/ppd.c

index cda1d02b42102ac65c05fde886997b484d07eaf9..5372b84667051affd39b1b3f5bed3aab3d968591 100644 (file)
@@ -2616,7 +2616,7 @@ ppd_hash_option(ppd_option_t *option)     /* I - Option */
 
 
   for (hash = option->keyword[0], k = option->keyword + 1; *k;)
-    hash = 33 * hash + *k++;
+    hash = 33 * hash + toupper(*k++ & 255);
 
   return (hash & 511);
 }