Fix tor_strtok_r_impl and test cases per bug #5091

==

Nick here. I tweaked this patch a little to make it apply cleanly to
master, to extract some common code into a function, and to replace
snprintf with tor_snprintf.

-- nickm
This commit is contained in:
nils
2012-03-30 11:01:21 -04:00
committed by Nick Mathewson
parent 56e0959d2a
commit efb8a09f41
3 changed files with 77 additions and 33 deletions
+4
View File
@@ -0,0 +1,4 @@
o Minor bugfixes:
- Make our replacement implementation of strtok_r compatible with
the standard behavior of strtok_r. Patch by nils. Fixes bug
5091; bugfix on 0.2.2.1-alpha.