[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1567712673-1629-8-git-send-email-bfields@redhat.com>
Date: Thu, 5 Sep 2019 15:44:32 -0400
From: "J. Bruce Fields" <bfields@...hat.com>
To: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
Cc: linux-kernel@...r.kernel.org, Kees Cook <keescook@...omium.org>,
"J. Bruce Fields" <bfields@...hat.com>
Subject: [PATCH 8/9] minor kstrdup_quotable simplification
From: "J. Bruce Fields" <bfields@...hat.com>
---
lib/string_helpers.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/string_helpers.c b/lib/string_helpers.c
index 47f40406f9d4..6f553f893fda 100644
--- a/lib/string_helpers.c
+++ b/lib/string_helpers.c
@@ -518,8 +518,8 @@ char *kstrdup_quotable(const char *src, gfp_t gfp)
{
size_t slen, dlen;
char *dst;
- const int flags = ESCAPE_STYLE_HEX;
- const char esc[] = "\f\n\r\t\v\a\e\\\"";
+ const int flags = ESCAPE_SPECIAL|ESCAPE_STYLE_HEX;
+ const char esc[] = "\"";
if (!src)
return NULL;
--
2.21.0
Powered by blists - more mailing lists