Permalink
Browse files

Don't risk over running the buffer

  • Loading branch information...
dp111 authored and RMerl committed Feb 11, 2019
1 parent 46e7847 commit 17b451c130ef00660b79be0729380dfe3de0f3af
Showing with 1 addition and 1 deletion.
  1. +1 −1 release/src/router/phddns/src/phruncall.c
@@ -388,7 +388,7 @@ int SaveFile(char* save_file,PHGlobal *pglobal,PH_parameter *parameter)
memset(com,0,sizeof(com));
printf("Save to configuration file (%s",save_file);
printf(")?(yes/no/other):");
fgets(com,100,stdin);
fgets(com,10,stdin);
if( strlen(trim(com)) == 0 )
{
continue;

0 comments on commit 17b451c

Please sign in to comment.