Commit Diff


commit - 57d0d0adba61856956191554a9624334f083c2f6
commit + 7808978667888512395e63519751796dacae8550
blob - 15050b5bc0b1a3cb5220cbbf476c2502646f0c60
blob + 04caedc4759aa3f09ad0ce28a1054fd9e460004e
--- ex.c
+++ ex.c
@@ -72,7 +72,7 @@ send_vhost(int fd, struct vhost *vhost)
 	if (vhost < hosts || vhost > hosts + HOSTSLEN)
 		return 0;
 
-	n = hosts - vhost;
+	n = vhost - hosts;
 	return write(fd, &n, sizeof(n)) == sizeof(n);
 }