summaryrefslogtreecommitdiff
path: root/src/qsutil.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/qsutil.c')
-rw-r--r--src/qsutil.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qsutil.c b/src/qsutil.c
index 1d3c9c3..fc4129b 100644
--- a/src/qsutil.c
+++ b/src/qsutil.c
@@ -76,11 +76,12 @@ void logsafe(char *s)
int i;
while (!stralloc_copys(&foo, s)) nomem();
- for (i = 0; i < foo.len; ++i)
+ for (i = 0; i < foo.len; ++i) {
if (foo.s[i] == '\n')
foo.s[i] = '/';
else if (!issafe(foo.s[i]))
foo.s[i] = '_';
+ }
logsa(&foo);
}