File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 55
55
char err_msg[ERR_LEN] = "Unexpected error"; \
56
56
if (retval) { \
57
57
if (use_perror) { \
58
- strncpy(err_msg, strerror(errno), ERR_LEN); \
58
+ strncpy(err_msg, strerror(errno), ERR_LEN-1 ); \
59
59
} \
60
60
else { \
61
61
switch(retval) { \
62
62
case ERR_OUTMEMORY: \
63
- strncpy(err_msg, "Not enough memory", ERR_LEN); \
63
+ strncpy(err_msg, "Not enough memory", ERR_LEN-1 ); \
64
64
break; \
65
65
} \
66
66
} \
@@ -754,7 +754,7 @@ main(int argc, char *argv[])
754
754
int ret = 1 ;
755
755
int available = 1 ;
756
756
757
- CHECK (parse_arguments (argc , argv ), NULL );
757
+ CHECK (parse_arguments (argc , argv ), false );
758
758
759
759
if (args .quiet && args .verbose ) {
760
760
error_printf (main , "--quiet and --verbose are mutually exclusive" );
You can’t perform that action at this time.
0 commit comments