aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-rw-r--r--src/common/util.c2
-rw-r--r--src/common/util.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/common/util.c b/src/common/util.c
index bd38a6280..eb932f305 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -1227,7 +1227,7 @@ escaped(const char *s)
* <b>chars_to_escape</b>. The returned string is allocated on the
* heap and it's the responsibility of the caller to free it. */
char *
-tor_escape_str_for_socks_arg(const char *string, const char *chars_to_escape)
+tor_escape_str_for_pt_args(const char *string, const char *chars_to_escape)
{
char *new_string = NULL;
char *new_cp = NULL;
diff --git a/src/common/util.h b/src/common/util.h
index ba0ec9868..0a8e4a23f 100644
--- a/src/common/util.h
+++ b/src/common/util.h
@@ -231,8 +231,8 @@ int tor_digest256_is_zero(const char *digest);
char *esc_for_log(const char *string) ATTR_MALLOC;
const char *escaped(const char *string);
-char *tor_escape_str_for_socks_arg(const char *string,
- const char *chars_to_escape);
+char *tor_escape_str_for_pt_args(const char *string,
+ const char *chars_to_escape);
struct smartlist_t;
int tor_vsscanf(const char *buf, const char *pattern, va_list ap) \