-/* Copyright (C) 1992, 1994, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1992,94,97,2001 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
&buf, &buflen)))
return __hurd_dfail (fd, err);
+ if (*optlen > buflen)
+ *optlen = buflen;
if (buf != optval)
{
- if (*optlen < buflen)
- *optlen = buflen;
memcpy (optval, buf, *optlen);
__vm_deallocate (__mach_task_self (), (vm_address_t) buf, buflen);
}