summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2017-03-14 14:26:26 -0400
committerMichael R Sweet <michael.r.sweet@gmail.com>2017-03-14 14:26:26 -0400
commit845913bd5dee7d8c61c45f08f1b0b7d1f52ad5e1 (patch)
tree2e7099aaba1327ce0e3cf1cd992d09e747eac284 /man
parent87f340512c7abcc52887d92101ea8968acad657d (diff)
downloadcups-845913bd5dee7d8c61c45f08f1b0b7d1f52ad5e1.tar.gz
Fix mantohtml compiler warning (Issue #4982)
Diffstat (limited to 'man')
-rw-r--r--man/mantohtml.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/man/mantohtml.c b/man/mantohtml.c
index 8632de0f1..bf7ba5fe8 100644
--- a/man/mantohtml.c
+++ b/man/mantohtml.c
@@ -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);
}