Pārlūkot izejas kodu

vccd: 'support' new gcc warnings

intirain 4 gadi atpakaļ
vecāks
revīzija
779af23a44
3 mainītis faili ar 4 papildinājumiem un 4 dzēšanām
  1. 1 1
      Makefile
  2. 2 2
      include/vcc/version.h
  3. 1 1
      scripts/adduser.c

+ 1 - 1
Makefile

@@ -1,6 +1,6 @@
 VCCD_MAJOR 		= 1
 VCCD_MINOR 		= 9
-VCCD_PATCH 		= 3
+VCCD_PATCH 		= 4
 VCCD_STR 		= -rc 
 
 VCCD_COMPILE_TIME 	= $(shell date)

+ 2 - 2
include/vcc/version.h

@@ -1,2 +1,2 @@
-#define VCCD_VERSION "vccd 1.9.3 Tue May  3 16:18:19 CST 2022 root"
-#define VCCD_SEMVER "vccd 1.9.3-rc "
+#define VCCD_VERSION "vccd 1.9.4 Sun May 15 12:39:17 PM CST 2022 root"
+#define VCCD_SEMVER "vccd 1.9.4-rc "

+ 1 - 1
scripts/adduser.c

@@ -77,7 +77,7 @@ int main(int argc, const char **argv) {
 
 	/* in install.c, the runtime path always ends with '/' */
 	strcat(dir, "users/");
-	strncat(dir, argv[1], PATH_MAX);
+	strcat(dir, argv[1]);
 
 	if (unlikely((fd = open(dir, O_WRONLY | O_CREAT | O_EXCL, 0644)) < 0)) {
 		perror(argv[0]);