Browse Source

vccd: bug fix

intirain 4 năm trước cách đây
mục cha
commit
48e76c8ef7
3 tập tin đã thay đổi với 3 bổ sung và 2 xóa
  1. 1 1
      Makefile
  2. 1 1
      include/vcc/version.h
  3. 1 0
      relay.c

+ 1 - 1
Makefile

@@ -1,6 +1,6 @@
 VCCD_MAJOR 		= 1
 VCCD_MINOR 		= 20
-VCCD_PATCH 		= 1
+VCCD_PATCH 		= 2
 VCCD_STR 		= -rc 
 
 VCCD_COMPILE_TIME 	= $(shell date)

+ 1 - 1
include/vcc/version.h

@@ -1,2 +1,2 @@
-#define VCCD_VERSION "vccd 1.20.1 Fri Jul  8 10:04:33 AM CST 2022 root"
+#define VCCD_VERSION "vccd 1.20.1 Fri Jul  8 10:29:28 AM CST 2022 root"
 #define VCCD_SEMVER "vccd 1.20.1-rc "

+ 1 - 0
relay.c

@@ -56,6 +56,7 @@ int relay_new_msg(int fd, void *t) {
 	}
 
 	read_until(fd, msg, len);
+	msg[len] = 0;
 
 	if (!*req->visible) 
 		relay_group_broadcast(msg, fd, req);