summaryrefslogtreecommitdiff
path: root/format.c
diff options
context:
space:
mode:
Diffstat (limited to 'format.c')
-rw-r--r--format.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/format.c b/format.c
index b1c84ba..63e73f6 100644
--- a/format.c
+++ b/format.c
@@ -183,8 +183,7 @@ d_char *sanitize(const char *content)
183 183
184 /* strip dangerous control codes */ 184 /* strip dangerous control codes */
185 for (n = 0; content2[n]; n++) { 185 for (n = 0; content2[n]; n++) {
186 if (content2[n] > 0x0 && content2[n] < 0x20 && 186 if (xs_type(&content2[n]) != XSTYPE_STRING)
187 content2[n] != '\r' && content2[n] != '\n')
188 content2[n] = ' '; 187 content2[n] = ' ';
189 } 188 }
190 189