Răsfoiți Sursa

bug fix in a formatting string

Jiri Kuthan 23 ani în urmă
părinte
comite
3a7d29ef39
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      fifo_server.c

+ 1 - 1
fifo_server.c

@@ -429,7 +429,7 @@ int open_fifo_server()
 	t=ctime(&up_since);
 	t=ctime(&up_since);
 	if (strlen(t)+1>=MAX_CTIME_LEN) {
 	if (strlen(t)+1>=MAX_CTIME_LEN) {
 		LOG(L_ERR, "ERROR: open_fifo_server: "
 		LOG(L_ERR, "ERROR: open_fifo_server: "
-			"too long date %s\n", strlen(t));
+			"too long date %d\n", strlen(t));
 		return -1;
 		return -1;
 	}
 	}
 	memcpy(up_since_ctime,t,strlen(t)+1);
 	memcpy(up_since_ctime,t,strlen(t)+1);