FreeBSD Bugzilla – Attachment 206234 Details for
Bug 238690
korean/hpscat: depends on to-be-removed gets(3)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
svn-diff-hpscat
svn-diff-hpscat (text/plain), 1.62 KB, created by
Walter Schwarzenfeld
on 2019-08-03 11:32:12 UTC
(
hide
)
Description:
svn-diff-hpscat
Filename:
MIME Type:
Creator:
Walter Schwarzenfeld
Created:
2019-08-03 11:32:12 UTC
Size:
1.62 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 507962) >+++ Makefile (working copy) >@@ -3,7 +3,7 @@ > > PORTNAME= hpscat > PORTVERSION= 1.3.1 >-PORTEPOCH= 1 >+PORTEPOCH= 2 > CATEGORIES= korean print > MASTER_SITES= http://ftp.kaist.ac.kr/hangul/print/hpscat/ \ > ftp://ftp.kaist.ac.kr/hangul/print/hpscat/ \ >Index: files/patch-hpscat.c >=================================================================== >--- files/patch-hpscat.c (revision 507962) >+++ files/patch-hpscat.c (working copy) >@@ -1,38 +1,11 @@ >---- hpscat.c.orig 1995-11-23 07:46:12.000000000 -0500 >-+++ hpscat.c 2013-06-12 17:10:59.000000000 -0400 >-@@ -12,13 +12,14 @@ >- bool cheat; >- FILE *fp, *ofp; >- >-+static int open_outfile(char *); >-+ >- /**************** >- main routine >- ****************/ >- >--main(ac,av) >-- int ac; >-- char *av[]; >-+int >-+main(int ac, char *av[]) >- { >- int i; >- extern void showfile PROT((char *)); >-@@ -53,13 +54,13 @@ >- exit(0); >- } >- >--int >--open_outfile(s) /* returns -1 if can't write */ >-- char *s; >-+static int >-+open_outfile(char *s) /* returns -1 if can't write */ >- { >- char ans[80], buf[256]; >- sprintf(buf,"%s.ps", s); >-- if(ofp=fopen(buf,"r")) { /* file exists */ >-+ ofp=fopen(buf,"r"); >-+ if(ofp) { /* file exists */ >+--- hpscat.c.orig 2019-08-03 11:25:44 UTC >++++ hpscat.c >+@@ -62,7 +62,7 @@ open_outfile(s) /* returns -1 if can >+ if(ofp=fopen(buf,"r")) { /* file exists */ > fclose(ofp); > fprintf(stderr,"output file %s exists...overwrite? ", buf); >- gets(ans); >+- gets(ans); >++ fgets(buf,256,ans); >+ if(ans[0]=='y') >+ unlink(buf); >+ else
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 238690
: 206234