diff options
| author | Roy Marples <roy@marples.name> | 2014-09-28 20:26:49 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2014-09-28 20:26:49 +0000 |
| commit | bc51f492ad6372d2bddcdf3541675c3ee64d4ea0 (patch) | |
| tree | 184b57dce9e45e8473046c34ab8c823d423ea074 /dhcpcd.c | |
| parent | e85651997c66d68a5563a8c96dbd0208f619b132 (diff) | |
| download | dhcpcd-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.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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'; |
