Permalink
Browse files
Don't risk over running the buffer
- Loading branch information...
Showing
with
1 addition
and
1 deletion.
-
+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