Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 832695 Details for
Bug 1037386
wordnet FTBFS if "-Werror=format-security" flag is used
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Fix
wordnet-3.0-Pass-compilation-with-Werror-format-security.patch (text/plain), 1.65 KB, created by
Petr Pisar
on 2013-12-04 15:07:46 UTC
(
hide
)
Description:
Fix
Filename:
MIME Type:
Creator:
Petr Pisar
Created:
2013-12-04 15:07:46 UTC
Size:
1.65 KB
patch
obsolete
>From ab6d29e9056173145cf49ebf9804e6caf2f870ea Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com> >Date: Wed, 4 Dec 2013 15:58:30 +0100 >Subject: [PATCH] Pass compilation with -Werror=format-security >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > ><https://bugzilla.redhat.com/show_bug.cgi?id=1037386> > >Signed-off-by: Petr PÃsaÅ <ppisar@redhat.com> >--- > lib/binsrch.c | 4 ++-- > src/wn.c | 3 +-- > 2 files changed, 3 insertions(+), 4 deletions(-) > >diff --git a/lib/binsrch.c b/lib/binsrch.c >index 8b71216..6b17325 100644 >--- a/lib/binsrch.c >+++ b/lib/binsrch.c >@@ -193,7 +193,7 @@ char *replace_line(char *new_line, char *searchkey, FILE *fp) > copyfile(fp, tfp); > if (fseek(fp, offset, 0) == -1) > return(NULL); /* could not seek to offset */ >- fprintf(fp, new_line); /* write line */ >+ fputs(new_line, fp); /* write line */ > rewind(tfp); > copyfile(tfp, fp); > >@@ -220,7 +220,7 @@ char *insert_line(char *new_line, char *searchkey, FILE *fp) > copyfile(fp, tfp); > if (fseek(fp, offset, 0) == -1) > return(NULL); /* could not seek to offset */ >- fprintf(fp, new_line); /* write line */ >+ fputs(new_line, fp); /* write line */ > rewind(tfp); > copyfile(tfp, fp); > >diff --git a/src/wn.c b/src/wn.c >index 6870a60..7eef283 100644 >--- a/src/wn.c >+++ b/src/wn.c >@@ -284,8 +284,7 @@ static void printsearches(char *word, int dbase, unsigned long search) > printf("\t"); > printf(searchstr[j].template, > partchars[dbase], partchars[dbase]); >- printf(searchstr[j].helpstr); >- printf("\n"); >+ printf("%s\n", searchstr[j].helpstr); > } > } > >-- >1.8.3.1 >
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 1037386
: 832695