]> git.saurik.com Git - apple/libc.git/blob - string/FreeBSD/swab.c.patch
Libc-763.13.tar.gz
[apple/libc.git] / string / FreeBSD / swab.c.patch
1 --- swab.c.bsdnew 2009-11-18 18:24:38.000000000 -0800
2 +++ swab.c 2009-11-18 18:40:17.000000000 -0800
3 @@ -45,6 +45,8 @@ swab(const void * __restrict from, void
4 int n;
5 char *fp, *tp;
6
7 + if (len <= 0)
8 + return;
9 n = len >> 1;
10 fp = (char *)from;
11 tp = (char *)to;