]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Document what "escape" means in tor_escape_str_for_pt_args
authorNick Mathewson <nickm@torproject.org>
Mon, 15 Jul 2013 17:17:25 +0000 (13:17 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 18 Jul 2013 12:45:03 +0000 (08:45 -0400)
src/common/util.c

index eb932f30547db531775e91bf658918405c656a1c..0e8d34eafd3d44ed4dd18f742f57a10e0c7c010d 100644 (file)
@@ -1223,9 +1223,8 @@ escaped(const char *s)
   return escaped_val_;
 }
 
-/** Escape every character of <b>string</b> that is in
- *  <b>chars_to_escape</b>. The returned string is allocated on the
- *  heap and it's the responsibility of the caller to free it. */
+/** Return a newly allocated string equal to <b>string</b>, except that every
+ * character in <b>chars_to_escape</b> is preceded by a backslash. */
 char *
 tor_escape_str_for_pt_args(const char *string, const char *chars_to_escape)
 {