Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/korean/hpscat/files/patch-hpscat.c
16461 views
1
--- hpscat.c.orig 2019-08-03 11:25:44 UTC
2
+++ hpscat.c
3
@@ -62,7 +62,7 @@ open_outfile(s) /* returns -1 if can
4
if(ofp=fopen(buf,"r")) { /* file exists */
5
fclose(ofp);
6
fprintf(stderr,"output file %s exists...overwrite? ", buf);
7
- gets(ans);
8
+ fgets(buf,256,ans);
9
if(ans[0]=='y')
10
unlink(buf);
11
else
12
13