Author twouters
Recipients
Date 2006-04-12.14:52:44
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=34209

Hrm. After giving this some thought, perhaps we should do

 memcpy(buf, str, len+1)

instead of

 memcpy(buf, str, len)
 buf[len] = '\0'

(And do this in the writable-buffer case as well, when we
use memcpy.) Other than that, I think this is the right fix.
Assigning to mwh for second (third? fourth?) opinion.
History
Date User Action Args
2007-08-23 14:37:58adminlinkissue1433877 messages
2007-08-23 14:37:58admincreate