Skip to content

Commit 273b621

Browse files
committed
Fixed issue in sscanf with the periodic announcements
1 parent d3806e3 commit 273b621

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

srcCxx/shape_main.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -852,7 +852,7 @@ class ShapeOptions {
852852
break;
853853
case 'N': {
854854
int converted_param = 0;
855-
if (sscanf(optarg, "%u", &converted_param) == 0) {
855+
if (sscanf(optarg, "%d", &converted_param) == 0) {
856856
logger.log_message("unrecognized value for periodic-announcement "
857857
+ std::string(1, optarg[0]),
858858
Verbosity::ERROR);

0 commit comments

Comments
 (0)