FreeBSD Bugzilla – Attachment 201321 Details for
Bug 235121
shells/rssh: rssh crashes on invocation due to new basename(3) POSIX behaviour
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
basename(3): avoid unnecessary writing to passed string
file_235121.txt (text/plain), 316 bytes, created by
topical
on 2019-01-22 07:41:19 UTC
(
hide
)
Description:
basename(3): avoid unnecessary writing to passed string
Filename:
MIME Type:
Creator:
topical
Created:
2019-01-22 07:41:19 UTC
Size:
316 bytes
patch
obsolete
>--- "basename.c.orig" >+++ "basename.c" >@@ -45,7 +45,10 @@ char * > ptr = path + strlen(path); > while (ptr > path + 1 && *(ptr - 1) == '/') > --ptr; >- *ptr-- = '\0'; >+ >+ if( *ptr ) >+ *ptr = '\0'; >+ --ptr; > > /* Find beginning of last pathname component. */ > while (ptr > path && *(ptr - 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 235121
:
201321
|
201322
|
201752
|
201753
|
201754
|
201755
|
202073
|
202528