~sircmpwn/deacme unlisted

7f52185588cefe37fb6d49041e849e1becb8dc65 — Drew DeVault 2 years ago fc2bbb5
Fix typos
1 files changed, 2 insertions(+), 2 deletions(-)

M util.c
M util.c => util.c +2 -2
@@ 103,7 103,7 @@ char *readstr(int fd, enum comm comm) {

/*
 * Read a buffer from the sender.
 * This consists of two parts: the lenght of the buffer, and the buffer
 * This consists of two parts: the length of the buffer, and the buffer
 * itself.
 * We allow the buffer to be binary, but nil-terminate it anyway.
 */


@@ 122,7 122,7 @@ char *readbuf(int fd, enum comm comm, size_t *sz) {
		warnx("integer overflow");
		return NULL;
	} else if (NULL == (p = calloc(1, *sz + 1))) {
		warn("malloc %s (%zd)", comms[com], *sz + 1);
		warn("malloc %s (%zd)", comms[comm], *sz + 1);
		return NULL;
	}