aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-11-28 09:14:07 +0000
committerNick Mathewson <nickm@torproject.org>2004-11-28 09:14:07 +0000
commitf7c6ad065e2c433acb3fcccb1e9c7812c262579d (patch)
tree6947f81a6646d0bb3f79e55ecce03483c65450ad /src
parent6f5dbefa7efe0c0c86928777b8821b3fdc91cf45 (diff)
downloadtor-f7c6ad065e2c433acb3fcccb1e9c7812c262579d.tar
tor-f7c6ad065e2c433acb3fcccb1e9c7812c262579d.tar.gz
correct multiple internal spaces
svn:r3004
Diffstat (limited to 'src')
-rw-r--r--src/common/util.c2
-rw-r--r--src/or/test.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/common/util.c b/src/common/util.c
index 31ec0d5f4..055dfbcc5 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -1207,7 +1207,7 @@ parse_addr_and_port_range(const char *s, uint32_t *addr_out,
*port_max_out = 65535;
} else {
endptr = NULL;
- *port_min_out = (uint16_t) tor_parse_long(port, 10, 1, 65535,
+ *port_min_out = (uint16_t) tor_parse_long(port, 10, 1, 65535,
NULL, &endptr);
if (*endptr == '-') {
port = endptr+1;
diff --git a/src/or/test.c b/src/or/test.c
index f80cc5520..d59609269 100644
--- a/src/or/test.c
+++ b/src/or/test.c
@@ -680,9 +680,9 @@ test_util(void) {
test_eq(0L, tor_parse_long("10",10,50,100,NULL,NULL));
/* Test parse_line_from_str */
- strlcpy(buf, "k v\n" " key value with spaces \n" "keykey val\n"
+ strlcpy(buf, "k v\n" " key value with spaces \n" "keykey val\n"
"k2\n"
- "k3 \n" "\n" " \n" "#comment\n"
+ "k3 \n" "\n" " \n" "#comment\n"
"k4#a\n" "k5#abc\n" "k6 val #with comment\n", sizeof(buf));
cp = buf;