summaryrefslogtreecommitdiffstats
path: root/dhcpcd.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2014-09-28 20:26:49 +0000
committerRoy Marples <roy@marples.name>2014-09-28 20:26:49 +0000
commitbc51f492ad6372d2bddcdf3541675c3ee64d4ea0 (patch)
tree184b57dce9e45e8473046c34ab8c823d423ea074 /dhcpcd.c
parente85651997c66d68a5563a8c96dbd0208f619b132 (diff)
downloaddhcpcd-bc51f492ad6372d2bddcdf3541675c3ee64d4ea0.tar.xz
Some strings don't need to be shell escaped - for example when sending to
syslog(2), so just use vis(3).
Diffstat (limited to 'dhcpcd.c')
-rw-r--r--dhcpcd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/dhcpcd.c b/dhcpcd.c
index 240bd454..7e174cca 100644
--- a/dhcpcd.c
+++ b/dhcpcd.c
@@ -490,7 +490,9 @@ dhcpcd_selectprofile(struct interface *ifp, const char *profile)
if (ifp->ssid_len) {
ssize_t r;
- r =print_string(pssid, sizeof(pssid), ifp->ssid, ifp->ssid_len);
+
+ r = print_string(pssid, sizeof(pssid), 0,
+ ifp->ssid, ifp->ssid_len);
if (r == -1) {
syslog(LOG_ERR, "%s: %s: %m", ifp->name, __func__);
pssid[0] = '\0';