Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 63103 Details for
Bug 98419
[sandbox] built-in `getcwd()' implementation broken
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
getcwd_glibc.diff
getcwd_glibc.diff (text/plain), 862 bytes, created by
bartron
on 2005-07-10 18:04:48 UTC
(
hide
)
Description:
getcwd_glibc.diff
Filename:
MIME Type:
Creator:
bartron
Created:
2005-07-10 18:04:48 UTC
Size:
862 bytes
patch
obsolete
>--- getcwd.c.ORIG 2001-07-06 06:56:01.000000000 +0200 >+++ getcwd.c 2003-05-31 15:15:36.977823440 +0200 >@@ -274,7 +274,7 @@ > char *new; > if (dotlist == dots) > { >- new = malloc (dotsize * 2 + 1); >+ new = malloc (dotsize * 2 + 2); > if (new == NULL) > goto lose; > #ifdef HAVE_MEMPCPY >@@ -286,17 +286,18 @@ > } > else > { >- new = realloc ((__ptr_t) dotlist, dotsize * 2 + 1); >+ new = realloc ((__ptr_t) dotlist, dotsize * 2 + 2); > if (new == NULL) > goto lose; > dotp = &new[dotsize]; > } >+ *dotp++ = '/'; > #ifdef HAVE_MEMPCPY > *((char *) mempcpy ((char *) dotp, new, dotsize)) = '\0'; >- dotsize *= 2; >+ dotsize = (dotsize * 2) + 1; > #else > memcpy ((char *) dotp, new, dotsize); >- dotsize *= 2; >+ dotsize = (dotsize * 2) + 1; > new[dotsize] = '\0'; > #endif > dotlist = new;
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 98419
: 63103 |
63296