blob: 1c3f1c9ba03ed66106e7288bc3bdb01023cd601c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
diff --git a/src/command_network.cc b/src/command_network.cc
index 2b6874c..4050141 100644
--- a/src/command_network.cc
+++ b/src/command_network.cc
@@ -304,7 +304,7 @@ network_port_range_set(const std::string& arg) {
uint16_t port_first;
uint16_t port_last;
- if (std::sscanf(arg.c_str(), "%" PRIu16 "-%" PRIu16, &port_first, &port_last) != 2)
+ if (std::sscanf(arg.c_str(), "%" SCNu16 "-%" SCNu16, &port_first, &port_last) != 2)
throw torrent::input_error("Invalid port_range argument.");
torrent::bind()->set_listen_port_range(port_first, port_last, 0);
|