summaryrefslogtreecommitdiff
path: root/src/qsutil.c
diff options
context:
space:
mode:
authorJannis Hoffmann <jannis@fehcom.de>2024-07-03 19:03:11 +0200
committerJannis Hoffmann <jannis@fehcom.de>2024-07-03 19:03:11 +0200
commit20b85c03e751b4876fa3c92040464e483172b746 (patch)
tree734fadbfdbc143ec4465093857f4c239448715e0 /src/qsutil.c
parenta6a7d6ce079cabdaf2fa502b2e2cf15e5428ac6f (diff)
manual format adjustment
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);
}