[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: strtok_r in glibc 2.0.7 bugginess



In message <5llnikn4ax.fsf@assaris.sics.se>, Assar Westerlund writes:
+-----
| I think the error actually happens when using a constant string.  Can
| you try the appended patch and if it solves the problem for you?
+--->8

Correct, and that's the fix I used with both heimdal and kth-krb4 (strdup() 
the first parameter).

strtok() and strtok_r() are really pre-ANSI and in my experience are best 
avoided.


-- 
brandon s. allbery	[os/2][linux][solaris][japh]	 allbery@kf8nh.apk.net
system administrator	     [WAY too many hats]	   allbery@ece.cmu.edu
carnegie mellon / electrical and computer engineering			 KF8NH
     We are Linux. Resistance is an indication that you missed the point.