]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix mantohtml compiler warning (Issue #4982)
authorMichael R Sweet <michael.r.sweet@gmail.com>
Tue, 14 Mar 2017 18:26:26 +0000 (14:26 -0400)
committerMichael R Sweet <michael.r.sweet@gmail.com>
Tue, 14 Mar 2017 18:26:26 +0000 (14:26 -0400)
man/mantohtml.c

index 8632de0f137aa5a427ac8bb0546fab4007e6bbdb..bf7ba5fe825bd149e694e85b5b15a855e1073566 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Man page to HTML conversion program.
  *
- * Copyright 2007-2010, 2014 by Apple Inc.
+ * Copyright 2007-2017 by Apple Inc.
  * Copyright 2004-2006 by Easy Software Products.
  *
  * These coded instructions, statements, and computer programs are the
@@ -1153,8 +1153,11 @@ html_fputs(const char *s,                /* I  - String */
       }
       else
       {
-        if (*s != '\\' && *s == '\"' && *s == '\'' && *s == '-')
+        if (*s != '\\' && *s != '\"' && *s != '\'' && *s != '-')
+        {
           fprintf(stderr, "mantohtml: Unrecognized escape \"\\%c\" ignored.\n", *s);
+          html_putc('\\', fp);
+        }
 
         html_putc(*s++, fp);
       }