summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2015-04-12 17:42:58 -0400
committerAnthony G. Basile <blueness@gentoo.org>2015-04-12 17:44:19 -0400
commit8b2a897e59663021a08b951886525c13e182ddf6 (patch)
treee1216bff9702c10909e1c8474e17e2b506a5527f /src/shared
parent4e9414b6563c7625400f5f6a96ab190d1af1b071 (diff)
util.c: follow upstream's comments.
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/util.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/shared/util.c b/src/shared/util.c
index 3ae73b944b..e70984d36e 100644
--- a/src/shared/util.c
+++ b/src/shared/util.c
@@ -666,7 +666,8 @@ char *cescape(const char *s) {
assert(s);
- /* Does C style string escaping. */
+ /* Does C style string escaping. May be reversed with
+ * cunescape(). */
r = new(char, strlen(s)*4 + 1);
if (!r)
@@ -686,7 +687,7 @@ char *xescape(const char *s, const char *bad) {
/* Escapes all chars in bad, in addition to \ and all special
* chars, in \xFF style escaping. May be reversed with
- * cunescape. */
+ * cunescape(). */
r = new(char, strlen(s) * 4 + 1);
if (!r)