commit | 781b82baf5e481964d67971848e4f363915ef789 | [log] [tgz] |
---|---|---|
author | Daniel Stenberg <daniel@haxx.se> | Mon Aug 03 08:45:19 2009 +0000 |
committer | Daniel Stenberg <daniel@haxx.se> | Mon Aug 03 08:45:19 2009 +0000 |
tree | e17ecd20371c491bb96ab7b548353bd2a9746b45 | |
parent | 2838362a7ba5fdf69e0207d2eb5f970632fd9d44 [diff] |
Reverted the zero-byte-in-name check to instead rely on the fact that strlen and the name length differ in those cases and thus leave the matching function unmodified from before, as the matching functions never have to bother with the zero bytes in legitimate cases. Peter Sylvester helped me realize that this fix is slightly better as it leaves more code unmodified and makes the detection a bit more obvious in the code.