diff options
author | imp <imp@FreeBSD.org> | 2016-05-17 22:52:42 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2016-05-17 22:52:42 +0000 |
commit | f675e6a4ecbccc5b75a66e9b60d1595f362336c9 (patch) | |
tree | bb8d053f551da8f459b0b8e841f7c16c0b161de7 /sys/kern | |
parent | 5e838e04e3b91d8abb280148ff38b52013f10389 (diff) | |
download | FreeBSD-src-f675e6a4ecbccc5b75a66e9b60d1595f362336c9.zip FreeBSD-src-f675e6a4ecbccc5b75a66e9b60d1595f362336c9.tar.gz |
Don't forget to quote \ characters with \.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/subr_bus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/subr_bus.c b/sys/kern/subr_bus.c index bda4158..e882553 100644 --- a/sys/kern/subr_bus.c +++ b/sys/kern/subr_bus.c @@ -862,7 +862,7 @@ devctl_safe_quote(char *dst, const char *src, size_t len) return; while (src != NULL && walker < ep) { - if (*src == '"') { + if (*src == '"' || *src == '\\') { if (ep - walker < 2) break; *walker++ = '\\'; |