aboutsummaryrefslogtreecommitdiff
path: root/ge.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2024-06-08 18:37:57 +0000
committerOmar Polo <op@omarpolo.com>2024-06-08 18:37:57 +0000
commit401030113e383542ae85f2e51bde9f94ff4015f8 (patch)
tree2f21d5f5c19c85e2ce3efb50b7d3f6a0407c6336 /ge.c
parentfcf3f1fa9a0d6b30a189e7e71fc55348d72595ce (diff)
change the approach for strnvis
instead of making things more obscure via gmid_strnvis(), let's just check for strnvis with -Werror so we can swap the OS broken implementation with the bundled OpenBSD one.
Diffstat (limited to 'ge.c')
-rw-r--r--ge.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ge.c b/ge.c
index 0296dba..2bd3991 100644
--- a/ge.c
+++ b/ge.c
@@ -83,7 +83,7 @@ log_request(struct client *c, int code, const char *meta)
strlcpy(cntmp, subj + 4, sizeof(cntmp));
if ((n = strchr(cntmp, '/')) != NULL)
*n = '\0';
- gmid_strnvis(cn, cntmp, sizeof(cn), VIS_WHITE|VIS_DQ);
+ strnvis(cn, cntmp, sizeof(cn), VIS_WHITE|VIS_DQ);
}
}