summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/carefulputc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/carefulputc.h b/include/carefulputc.h
index c116d0a98..3a0ec5b66 100644
--- a/include/carefulputc.h
+++ b/include/carefulputc.h
@@ -34,6 +34,8 @@ static inline void fputs_quoted(const char *data, FILE *out)
for (p = data; p && *p; p++) {
if ((unsigned char) *p == 0x22 || /* " */
(unsigned char) *p == 0x5c || /* \ */
+ (unsigned char) *p == 0x60 || /* ` */
+ (unsigned char) *p == 0x24 || /* $ */
!isprint((unsigned char) *p) ||
iscntrl((unsigned char) *p)) {