Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 250365 Details for
Bug 306445
app-text/pinfo-0.6.9 fails for some items
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
pinfo-0.6.9-info-suffix.patch
pinfo-0.6.9-info-suffix.patch (text/plain), 993 bytes, created by
Ulrich Müller
on 2010-10-12 15:10:47 UTC
(
hide
)
Description:
pinfo-0.6.9-info-suffix.patch
Filename:
MIME Type:
Creator:
Ulrich Müller
Created:
2010-10-12 15:10:47 UTC
Size:
993 bytes
patch
obsolete
>--- pinfo-0.6.9-orig/src/filehandling_functions.c >+++ pinfo-0.6.9/src/filehandling_functions.c >@@ -96,11 +96,14 @@ matchfile(char **buf, char *name) > { > /* use strcat rather than strdup, because xmalloc handles all > * malloc errors */ >- char *thisfile = xmalloc(strlen(dp->d_name)+1); >+ int len = strlen(dp->d_name)+1; >+ char *thisfile = xmalloc(len * 2); >+ char *thisfile_info = thisfile + len; > strcat(thisfile, dp->d_name); > > /* strip suffixes (so "gcc.info.gz" -> "gcc") */ > strip_compression_suffix(thisfile); >+ strcat(thisfile_info, thisfile); > strip_info_suffix(thisfile); > > /* compare this file with the file we're looking for */ >@@ -109,8 +112,7 @@ matchfile(char **buf, char *name) > /* we found a match! */ > matched++; > /* put it in the buffer */ >- strncat(Buf, thisfile, 1023-strlen(Buf)); >- strncat(Buf, ".info", 1023-strlen(Buf)); >+ strncat(Buf, thisfile_info, 1023-strlen(Buf)); > > /* clean up, and exit the loop */ > xfree(thisfile);
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 306445
:
249765
|
249766
|
249822
| 250365 |
252975