15 Apr
2006
15 Apr
'06
9:54 p.m.
Hi, On Wed, Mar 15, 2006 at 12:02:24AM -0500, Jeff D'Angelo wrote:
Another way is to make an "n" version of url_unescape_string() to replace the strncpy() like I do in the enclosed patch. Let me know what you think.
Completely went under in the stream of patches...
+/* the "n" version of url_unescape_string(), parallels strncpy() */ +void +url_unescape_nstring(char *outbuf, const char *inbuf, int len) +{ unsigned char c,c1,c2; - int i,len=strlen(inbuf); + int i;
esp. with that comment, there should be something to the effect of len = min(len, strlen(inbuf)). I'll try to have a closer look at this, but I'm drowning in my own patches already... Greetings, Reimar Döffinger