View Issue Details

IDProjectCategoryView StatusLast Update
00009281003.1(2013)/Issue7+TC1System Interfacespublic2019-06-10 08:54
ReporterEdSchouten Assigned Toajosey  
PrioritynormalSeverityEditorialTypeError
Status ClosedResolutionAccepted 
NameEd Schouten
OrganizationNuxi
User Reference
Sectionbasename()
Page Number619
Line Number21170
Interp Status---
Final Accepted Text
Summary0000928: basename: Provided example attempts to modify constant string
DescriptionThe 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 ActionThis line:

char *name = "/usr/lib";

Should be replaced by:

char name[] = "/usr/lib";
Tagstc2-2008

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2015-03-04 09:56 EdSchouten New Issue
2015-03-04 09:56 EdSchouten Status New => Under Review
2015-03-04 09:56 EdSchouten Assigned To => ajosey
2015-03-04 09:56 EdSchouten Name => Ed Schouten
2015-03-04 09:56 EdSchouten Organization => Nuxi
2015-03-04 09:56 EdSchouten Section => n/a
2015-03-04 09:56 EdSchouten Page Number => n/a
2015-03-04 09:56 EdSchouten Line Number => n/a
2015-05-07 16:20 Don Cragun Section n/a => basename()
2015-05-07 16:20 Don Cragun Page Number n/a => 619
2015-05-07 16:20 Don Cragun Line Number n/a => 21170
2015-05-07 16:20 Don Cragun Interp Status => ---
2015-05-07 16:20 Don Cragun Status Under Review => Resolved
2015-05-07 16:20 Don Cragun Resolution Open => Accepted
2015-05-07 16:20 Don Cragun Tag Attached: tc2-2008
2015-05-07 16:21 geoffclare Project 1003.1(2008)/Issue 7 => 1003.1(2013)/Issue7+TC1
2019-06-10 08:54 agadmin Status Resolved => Closed