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/comms/yagiuda/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/comms/yagiuda/files/patch-src_dynamic.c
--- src/dynamic.c.orig	2000-10-28 11:45:50 UTC
+++ src/dynamic.c
@@ -13,7 +13,8 @@ void dynamic_changing_of_weights(int i, 
 	char c, *str;
 	if(i%divisor==0)
 	{
-		str=string(0L,100L);
+#define MAXINPUTLINE 100L
+		str=string(0L,MAXINPUTLINE);
 		if((fopen("change","rt"))!=NULL)
 		{
 			system("rm change");
@@ -23,24 +24,24 @@ void dynamic_changing_of_weights(int i, 
 			{
 				case 'G':
 				printf("Enter new weight for gain -current weight=%f\n",weight->gain);
-				scanf("%s",str);
+				fgets(str, MAXINPUTLINE-1, stdin);
 				weight->gain=atof(str);
 				fflush(stdin);
 				break;
 
 				case 'F':
 				printf("Enter new weight for FB -current weight=%f\n",weight->fb);
-				gets(str);
+				fgets(str, MAXINPUTLINE-1, stdin);
 				weight->fb=atof(str);
 				break;
 
 				case 'P':
 				printf("Enter new weight for sidelobe -current weight=%f\n",weight->sidelobe);
-				gets(str);
+				fgets(str, MAXINPUTLINE-1, stdin);
 				weight->sidelobe=atof(str);
 				break;
 			} /* end of switch statement */
 		} /* end of if file exits/user hit keyboard */
-	free_string(str,0L,100L);
+	free_string(str,0L,MAXINPUTLINE);
 	} /* end of if divisor%10==0 */
 } /* function  */

Youez - 2016 - github.com/yon3zu
LinuXploit