]> git.notmuchmail.org Git - notmuch/commitdiff
xutil: Implement xstrndup without relying on strndup.
authorCarl Worth <cworth@cworth.org>
Tue, 1 Dec 2009 20:51:39 +0000 (12:51 -0800)
committerCarl Worth <cworth@cworth.org>
Tue, 1 Dec 2009 20:51:39 +0000 (12:51 -0800)
Since we need to do this for portability, (some systems don't have a
strndup function), we might as well do it unconditionally. There's
almost no disadvantage to doing so, and this has the advantages of not
requiring a configure-time check nor having two different
implementations, one of which would often be less tested.


No differences found