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/shells/v7sh/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/shells/v7sh/files/patch-string.c
diff -u -x CVS -x work -x core -x *.core -x #* -x *~ -x *.orig -x *.rej -I $Id.*$ -I $.+BSD.*$ string.c.orig string.c
--- string.c.orig	Fri Jun  4 02:51:02 2004
+++ string.c	Sat Jun 19 18:42:24 2004
@@ -14,19 +14,20 @@
 
 
 STRING	movstr(a,b)
-	REG STRING	a, b;
+	REG CSTRING	a;
+	REG STRING	b;
 {
-	WHILE *b++ = *a++ DONE
+	WHILE (*b++ = *a++)!=0 DONE		/* GCC */
 	return(--b);
 }
 
 INT	any(c,s)
-	REG CHAR	c;
-	STRING		s;
+	REG INT		c;
+	CSTRING		s;
 {
-	REG CHAR d;
+	REG INT		d;
 
-	WHILE d = *s++
+	WHILE (d = *s++)!=0			/* GCC */
 	DO	IF d==c
 		THEN	return(TRUE);
 		FI
@@ -35,7 +36,7 @@
 }
 
 INT	cf(s1, s2)
-	REG STRING s1, s2;
+	REG CSTRING s1, s2;
 {
 	WHILE *s1++ == *s2
 	DO	IF *s2++==0
@@ -46,10 +47,10 @@
 }
 
 INT	length(as)
-	STRING as;
+	CSTRING as;
 {
-	REG STRING s;
+	REG CSTRING s;
 
-	IF s=as THEN WHILE *s++ DONE FI
+	IF (s=as)!=NIL THEN WHILE *s++ DONE FI	/* GCC */
 	return(s-as);
 }

Youez - 2016 - github.com/yon3zu
LinuXploit