summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFlorian Zumbiehl <florz@florz.de>2010-06-14 14:05:03 -0400
committerNick Mathewson <nickm@torproject.org>2010-06-14 14:05:18 -0400
commit426116113faa9648ac4a000731268c64bfce16cb (patch)
treebb4d94f9552401add29686a6109727138c4e37ae /src
parent308457218a9e8c41449f00bf0c65ec7124d9b4e8 (diff)
downloadtor-426116113faa9648ac4a000731268c64bfce16cb.tar.gz
tor-426116113faa9648ac4a000731268c64bfce16cb.zip
Save a couple characters' allocation in esc_for_log
Diffstat (limited to 'src')
-rw-r--r--src/common/util.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/util.c b/src/common/util.c
index f5001abe6c..8531d12eba 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -940,6 +940,9 @@ esc_for_log(const char *s)
case '\\':
case '\"':
case '\'':
+ case '\r':
+ case '\n':
+ case '\t':
len += 2;
break;
default: