Austin Group Defect Tracker

Aardvark Mark IV


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

- Relationships

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


Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker