403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.238
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/security/barnyard2/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/security/barnyard2/files/patch-map.c
--- src/map.c.orig	2018-10-06 11:14:40 UTC
+++ src/map.c
@@ -818,7 +818,7 @@ void ParseSidMapLine(Barnyard2Config *bc
 		{
                 case 0: /* sid */
                     t_sn.generator = 1;
-		    if( (t_sn.id = strtoul(idx, NULL, 10)) == ULONG_MAX)
+		    if( ((unsigned long)(t_sn.id = strtoul(idx, NULL, 10))) == ULONG_MAX)
 		    {
 			FatalError("[%s()], error converting integer [%s] for line [%s] \n",
 				   __FUNCTION__,
@@ -848,7 +848,7 @@ void ParseSidMapLine(Barnyard2Config *bc
 		{
 
 		case 0: /*gid */
-		    if( (t_sn.generator = strtoul(idx,NULL,10)) == ULONG_MAX)
+		    if( ((unsigned long)(t_sn.generator = strtoul(idx,NULL,10))) == ULONG_MAX)
 		    {
                         FatalError("[%s()], error converting integer [%s] for line [%s] \n",
                                    __FUNCTION__,
@@ -859,7 +859,7 @@ void ParseSidMapLine(Barnyard2Config *bc
 		    break;
 
 		case 1: /* sid */
-		    if( (t_sn.id = strtoul(idx, NULL, 10)) == ULONG_MAX)
+		    if( ((unsigned long)(t_sn.id = strtoul(idx, NULL, 10))) == ULONG_MAX)
 		    {
                         FatalError("[%s()], error converting integer [%s] for line [%s] \n",
                                    __FUNCTION__,
@@ -869,7 +869,7 @@ void ParseSidMapLine(Barnyard2Config *bc
 		    break;
 
 		case 2: /* revision */
-		    if( (t_sn.rev = strtoul(idx, NULL, 10)) == ULONG_MAX)
+		    if( ((unsigned long)(t_sn.rev = strtoul(idx, NULL, 10))) == ULONG_MAX)
 		    {
                         FatalError("[%s()], error converting integer [%s] for line [%s] \n",
                                    __FUNCTION__,
@@ -889,7 +889,7 @@ void ParseSidMapLine(Barnyard2Config *bc
 
 		case 4: /* priority */
 		    
-		    if( (t_sn.priority = strtoul(idx, NULL, 10)) == ULONG_MAX)
+		    if( (unsigned long)(t_sn.priority = strtoul(idx, NULL, 10)) == ULONG_MAX)
 		    {
                         FatalError("[%s()], error converting integer [%s] for line [%s] \n",
                                    __FUNCTION__,
@@ -1121,7 +1121,7 @@ void ParseGenMapLine(char *data)
         switch(i)
         {
 	case 0: /* gen */
-	    if( (t_sn.generator = strtoul(idx, NULL, 10)) == ULONG_MAX)
+	    if( (unsigned long)(t_sn.generator = strtoul(idx, NULL, 10)) == ULONG_MAX)
 	    {
 		FatalError("[%s()], error converting integer [%s] for line [%s] \n",
 			   __FUNCTION__,
@@ -1131,7 +1131,7 @@ void ParseGenMapLine(char *data)
 	    break;
 	    
 	case 1: /* sid */
-	    if( (t_sn.id = strtoul(idx, NULL, 10)) == ULONG_MAX)
+	    if( (unsigned long)(t_sn.id = strtoul(idx, NULL, 10)) == ULONG_MAX)
 	    {
 		FatalError("[%s()], error converting integer [%s] for line [%s] \n",
 			   __FUNCTION__,

Youez - 2016 - github.com/yon3zu
LinuXploit