Package: manpages-dev Version: 3.07-1 Severity: normal
The BUGS section of strsep claims: This function suffers from the same problems as strtok(3). And the strtok manpage says: The strtok() function uses a static buffer while parsing, so it’s not thread safe. Use strtok_r() if this matters to you. Now, the static buffer, making the fucntion inherently thread-unsafe, is *the* biggets problem with strtok, but I cnanto see why strsep suffers from that. If strsep suffers from that problem, it is an implementation details, as the function can be implemented perfetcly fine withotu a static buffer (and I cnanot imagien why one would deliberality make it use an unnecessary static buffer in the first place). Since strsep is usually promoted as a thread-safe alternative to strtok, I think the BUGS section is wrong: strsep does NOT suffer from the same bugs as strtok. -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.24-etchnhalf.1-amd64 (SMP w/4 CPU cores) Locale: LANG=C, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages manpages-dev depends on: hi manpages 3.07-1 Manual pages about using a GNU/Lin manpages-dev recommends no packages. Versions of packages manpages-dev suggests: ii konqueror [man-brows 4:3.5.9.dfsg.1-2+b1 KDE's advanced file manager, web b ii man-db [man-browser] 2.5.2-1 on-line manual pager -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org