Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 165601 Details for
Bug 237882
dev-libs/libedit-20050930 enters an infinite loop upon reading a history file
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
proposed patch (to be applied 'epatch' from an ebuild)
libedit-fgetln.patch (text/plain), 591 bytes, created by
Bertram Felgenhauer
on 2008-09-16 22:45:34 UTC
(
hide
)
Description:
proposed patch (to be applied 'epatch' from an ebuild)
Filename:
MIME Type:
Creator:
Bertram Felgenhauer
Created:
2008-09-16 22:45:34 UTC
Size:
591 bytes
patch
obsolete
>diff -ru orig/glibc-bsd-glue/fgetln.c my/glibc-bsd-glue/fgetln.c >--- orig/glibc-bsd-glue/fgetln.c 2004-08-26 22:05:33.000000000 +0200 >+++ my/glibc-bsd-glue/fgetln.c 2008-09-16 23:51:38.603922530 +0200 >@@ -1,13 +1,16 @@ > #include "bsdcompat.h" >+#include <stdlib.h> > > char * > fgetln (FILE *stream, size_t *len) > { > char *line=NULL; >+ ssize_t slen; > >- getline (&line, len, stream); >+ *len = slen = getline (&line, len, stream); >+ >+ if (slen < 0) >+ return NULL; > >- (*len)--; /* get rid of the trailing \0, fgetln >- does not have it */ > return line; > } >Only in my/glibc-bsd-glue: fgetln.c~
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 237882
: 165601