Skip to content

Commit

Permalink
fix gcc new -Wstringop-truncation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ranch-verdin committed Feb 10, 2019
1 parent 7a8de11 commit 8f6f4e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions matron/src/args.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ int args_parse(int argc, char **argv)
while( ( opt = getopt(argc, argv, "r:l:m:") ) != -1 ) {
switch(opt) {
case 'l':
strncpy(a.loc_port, optarg, ARG_BUF_SIZE);
strncpy(a.loc_port, optarg, ARG_BUF_SIZE-1);
break;
case 'r':
strncpy(a.rem_port, optarg, ARG_BUF_SIZE);
strncpy(a.rem_port, optarg, ARG_BUF_SIZE-1);
break;
default:
;;
Expand Down

0 comments on commit 8f6f4e0

Please sign in to comment.