From aea60bee5e9bad0aab62f480f19c2fb34c068de4 Mon Sep 17 00:00:00 2001 From: deraadt Date: Fri, 16 Jan 2015 16:48:51 +0000 Subject: Move to the universe. review by millert, binary checking process with doug, concept with guenther --- lib/libc/asr/gethostnamadr_async.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/libc/asr/gethostnamadr_async.c') diff --git a/lib/libc/asr/gethostnamadr_async.c b/lib/libc/asr/gethostnamadr_async.c index c2870f91db5..83acf61120f 100644 --- a/lib/libc/asr/gethostnamadr_async.c +++ b/lib/libc/asr/gethostnamadr_async.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gethostnamadr_async.c,v 1.33 2015/01/14 23:36:15 deraadt Exp $ */ +/* $OpenBSD: gethostnamadr_async.c,v 1.34 2015/01/16 16:48:51 deraadt Exp $ */ /* * Copyright (c) 2012 Eric Faurot * @@ -656,7 +656,7 @@ _yp_gethostnamadr(int type, const void *data) static char *domain = NULL; struct hostent_ext *h = NULL; const char *name; - char buf[MAXHOSTNAMELEN]; + char buf[HOST_NAME_MAX+1]; char *res = NULL; int r, len; -- cgit v1.2.3-59-g8ed1b