terminating \0 character. if i want to use it as a c string i have
to take that into account.
found by simon kuhnle who supplied a good bug report. prodded by deraadt@
-/* $OpenBSD: identd.c,v 1.23 2013/11/21 03:09:07 dlg Exp $ */
+/* $OpenBSD: identd.c,v 1.24 2014/01/07 00:11:11 dlg Exp $ */
/*
* Copyright (c) 2013 David Gwynne <dlg@openbsd.org>
goto done;
}
- r->buflen = n;
+ r->buflen = n + 1;
done:
SIMPLEQ_INSERT_TAIL(&sc.parent.replies, r, entry);