Fix xstrndup()
commitbe3c4c03b977bad894a42b5c71216f4d0075dd02
authorTimo Hirvonen <tihirvon@gmail.com>
Mon, 28 Jan 2008 15:55:54 +0000 (28 17:55 +0200)
committerTimo Hirvonen <tihirvon@gmail.com>
Mon, 28 Jan 2008 15:55:54 +0000 (28 17:55 +0200)
tree98372814d73ad762da213a31235a547272c03154
parent97a9e86e0059ba6e28bc0396984a31577b1d109d
Fix xstrndup()

Must not use strlen() because the string is not guaranteed to be nul
terminated.  Probably oldest bug ever.
xmalloc.c