Merge from vendor branch LIBARCHIVE:
[dragonfly.git] / gnu / usr.bin / cvs / lib / xgethostname.c.patch
1 $DragonFly: src/gnu/usr.bin/cvs/lib/Attic/xgethostname.c.patch,v 1.1 2005/04/18 20:22:42 dillon Exp $
2 --- ../../../../contrib/cvs-1.12.11/lib/xgethostname.c  2004-12-18 13:54:14.000000000 -0800
3 +++ xgethostname.c      2005-04-18 11:30:43.000000000 -0700
4 @@ -69,7 +69,7 @@
5           if (! hostname[size_1 - 1])
6             break;
7         }
8 -      else if (errno != 0 && errno != ENAMETOOLONG && errno != EINVAL)
9 +      else if (errno != 0 && errno != ENAMETOOLONG && errno != EINVAL && errno != ENOMEM)
10         {
11           int saved_errno = errno;
12           free (hostname);