This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/10959] New: argz_create_sep() may create an empty entry at the end of the argz array


Concerning argz routines.
argz_create_sep() is, as already stated, supposed to ignore empty strings or
fields. This is not the case : adding one or more delimiter characters at the
end of the string will indeed create an empty entry at the end of the argz
bytearray. argz_count() duly reports that, argz_extract() has an element which
points to an empty string, argz_stringify() lets it disappear. At least this is
confusing.
A small demo program will be forwarded as soon as I have received a bug ID.

Greetings

L, Haijen

-- 
           Summary: argz_create_sep() may create an empty entry at the end
                    of the argz array
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: lucien at haijen dot be
                CC: glibc-bugs at sources dot redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=10959

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]