@@ 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;
}