Skip to content

Commit

Permalink
Fix size of weights filename (ros2#3)
Browse files Browse the repository at this point in the history
Signed-off-by: Shane Loretz <[email protected]>
  • Loading branch information
sloretz authored Oct 4, 2019
1 parent bcb79e6 commit be4fd04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/detector_network.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ DetectorNetwork::DetectorNetwork(
std::unique_ptr<char> config_mutable(new char[config_file.size() + 1]);
std::unique_ptr<char> weights_mutable(new char[weights_file.size() + 1]);
snprintf(&*config_mutable, config_file.size() + 1, "%s", config_file.c_str());
snprintf(&*weights_mutable, config_file.size() + 1, "%s", weights_file.c_str());
snprintf(&*weights_mutable, weights_file.size() + 1, "%s", weights_file.c_str());

const int clear = 0;
impl_->network_ = load_network(&*config_mutable, &*weights_mutable, clear);
Expand Down

0 comments on commit be4fd04

Please sign in to comment.