403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.89
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/audio/nas/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/audio/nas/files/patch-clients_audio_audemo_audemo.c
--- clients/audio/audemo/audemo.c.orig	2013-10-07 17:05:48 UTC
+++ clients/audio/audemo/audemo.c
@@ -28,6 +28,7 @@
  */
 #include "config.h"
 
+#include <inttypes.h>
 #include <stdio.h>
 
 #if defined(HAVE_STDLIB_H)
@@ -913,7 +914,7 @@ okAction(Widget w, XEvent *event, String
     GlobalDataPtr   globals;
 
     /* retrieve the address of the globals from the first parameter */
-    globals = (GlobalDataPtr) atoi(params[0]);
+    globals = (GlobalDataPtr)(uintptr_t)strtoull(params[0], NULL, 0);
     saveOk(w, globals, 0);
 }
 
@@ -1198,7 +1199,7 @@ static void
 scrollProcCB(Widget w, XtPointer globalsp, XtPointer positionp)
 {
     GlobalDataPtr   globals = (GlobalDataPtr) globalsp;
-    int             position = (int) positionp;
+    intptr_t        position = (intptr_t) positionp;
     int             newVolume;
     char            buf[50];
 
@@ -1258,7 +1259,7 @@ static void
 gainScrollCB(Widget w, XtPointer globalsp, XtPointer positionp)
 {
     GlobalDataPtr   globals = (GlobalDataPtr) globalsp;
-    int             position = (int) positionp;
+    intptr_t        position = (intptr_t) positionp;
     int             newGain;
     char            buf[50];
 
@@ -1342,7 +1343,7 @@ makeSaveDialog(GlobalDataPtr g)
     MakeWidget(s->file, s->form, asciiTextWidgetClass, NULL, "filename");
 
     /* pass the address of the globals as an argument to the action */
-    sprintf(tmp, "<Key>Return: ok(%u)", (unsigned int) g);
+    sprintf(tmp, "<Key>Return: ok(%p)", g);
     XtOverrideTranslations(s->file, XtParseTranslationTable(tmp));
 
     /* file format */

Youez - 2016 - github.com/yon3zu
LinuXploit