[tor-commits] [tor/master] Fix spacing in tor_sscanf() call in tor_inet_aton()
nickm at torproject.org
nickm at torproject.org
Mon Jan 6 13:01:06 UTC 2020
commit b062e0f0a4046724e349b92a3edf79141320422e
Author: Neel Chauhan <neel at neelc.org>
Date: Fri Dec 20 14:11:03 2019 -0500
Fix spacing in tor_sscanf() call in tor_inet_aton()
---
src/lib/net/inaddr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lib/net/inaddr.c b/src/lib/net/inaddr.c
index 79529c047..a655ca6ad 100644
--- a/src/lib/net/inaddr.c
+++ b/src/lib/net/inaddr.c
@@ -39,7 +39,7 @@ tor_inet_aton(const char *str, struct in_addr *addr)
{
unsigned a,b,c,d;
char more;
- if (tor_sscanf(str, "%3u.%3u.%3u.%3u%c", &a,&b,&c,&d,&more) != 4)
+ if (tor_sscanf(str, "%3u.%3u.%3u.%3u%c", &a, &b, &c, &d, &more) != 4)
return 0;
if (a > 255) return 0;
if (b > 255) return 0;
More information about the tor-commits
mailing list