Merge pull request #148 from sadhyama/master

Modified strcpy to strncpy
This commit is contained in:
Weston Schmidt
2017-12-15 15:58:11 -08:00
committed by GitHub

View File

@@ -314,8 +314,8 @@ void parseCommandLine(int argc,char **argv,ParodusCfg * cfg)
break;
case 'T':
strcpy(token_application, optarg);
get_webpa_token(cfg->webpa_token,optarg,sizeof(cfg->webpa_token),cfg->hw_serial_number,cfg->hw_mac);
parStrncpy(token_application, optarg, sizeof(token_application));
get_webpa_token(cfg->webpa_token,optarg,sizeof(cfg->webpa_token),cfg->hw_serial_number,cfg->hw_mac);
ParodusInfo("webpa_token is %s\n",cfg->webpa_token);
break;