Преглед изворни кода

vcc: another bug fixed, but why?

intirain пре 4 година
родитељ
комит
47271e1978
3 измењених фајлова са 3 додато и 3 уклоњено
  1. 1 1
      Makefile
  2. 1 1
      include/vcc/version.h
  3. 1 1
      main.c

+ 1 - 1
Makefile

@@ -1,6 +1,6 @@
 VCCD_MAJOR 		= 0
 VCCD_MINOR 		= 1
-VCCD_PATCH 		= 2
+VCCD_PATCH 		= 3
 VCCD_COMPILE_TIME 	= $(shell date)
 VCCD_COMPILE_BY 	= $(shell whoami)
 

+ 1 - 1
include/vcc/version.h

@@ -1 +1 @@
-#define VCCD_VERSION "vccd 0.1.2 Sat Mar  5 16:18:03 CST 2022 root"
+#define VCCD_VERSION "vccd 0.1.3 Sat Mar  5 16:23:32 CST 2022 root"

+ 1 - 1
main.c

@@ -165,7 +165,7 @@ int main(int argc, const char **argv) {
 				break;
 			}
 
-			if (!*buf) 
+			if (!*buf || *(unsigned char *) buf == 0xffu) 
 				continue;
 
 			printf("New message: %s\n", buf);