diff --git a/coders/hdr.c b/coders/hdr.c
index 2729342..9a03eca 100644
--- a/coders/hdr.c
+++ b/coders/hdr.c
@@ -340,7 +340,10 @@
             case 'Y':
             case 'y':
             {
-              if (strcmp(keyword,"Y") == 0)
+              char
+                target[] = "Y";
+
+              if (strcmp(keyword,target) == 0)
                 {
                   int
                     height,