Anonymous | Login | 2024-04-26 18:06 UTC |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||
ID | Category | Severity | Type | Date Submitted | Last Update | ||
0000928 | [1003.1(2013)/Issue7+TC1] System Interfaces | Editorial | Error | 2015-03-04 09:56 | 2019-06-10 08:54 | ||
Reporter | EdSchouten | View Status | public | ||||
Assigned To | ajosey | ||||||
Priority | normal | Resolution | Accepted | ||||
Status | Closed | ||||||
Name | Ed Schouten | ||||||
Organization | Nuxi | ||||||
User Reference | |||||||
Section | basename() | ||||||
Page Number | 619 | ||||||
Line Number | 21170 | ||||||
Interp Status | --- | ||||||
Final Accepted Text | |||||||
Summary | 0000928: basename: Provided example attempts to modify constant string | ||||||
Description |
The example for basename() provided on this page is invalid: http://pubs.opengroup.org/onlinepubs/9699919799/functions/basename.html [^] It invokes the basename() function with a constant string, even though basename() is allowed to modify it: "The basename() function may modify the string pointed to by path" |
||||||
Desired Action |
This line: char *name = "/usr/lib"; Should be replaced by: char name[] = "/usr/lib"; |
||||||
Tags | tc2-2008 | ||||||
Attached Files | |||||||
|
There are no notes attached to this issue. |
Mantis 1.1.6[^] Copyright © 2000 - 2008 Mantis Group |