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/graphics/epsonscan2/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/graphics/epsonscan2/files/patch-src_SaneWrapper_epsonscan.cpp
--- src/SaneWrapper/epsonscan.cpp.orig	2021-11-25 00:56:59 UTC
+++ src/SaneWrapper/epsonscan.cpp
@@ -859,7 +859,7 @@ sane_start (SANE_Handle handle)
     select_current_doc_size(s, s->hw->sv->device_data);
     handle_scan_area (s, (char *) s->hw->cur_doc_size);
   }
-  if(sane_app_compatible("simple-scan")){
+  if(sane_app_compatible((SANE_String)"simple-scan")){
     double max_x = s->hw->sv->device_data.ScanArea.MaxScanAreaWidth.select / 100.0 * s->hw->sv->device_data.Resolution.select;
     double max_y = s->hw->sv->device_data.ScanArea.MaxScanAreaHeight.select / 100.0 * s->hw->sv->device_data.Resolution.select;
     if(max_x <= s->hw->sv->device_data.ScanArea.ScanAreaWidth.select &&
@@ -1265,7 +1265,7 @@ set_epson_value (Epson_Scanner *s, SANE_Int option, vo
         gamma_range.min) != SANE_STATUS_GOOD){
         return SANE_STATUS_INVAL;
       }
-      log_call("gamma = %d", value);
+      log_call("gamma = %d", *((SANE_Word *)value));
       handle_gamma (s, (SANE_UNFIX(*((SANE_Int *) value))*10));
       break;
     case OPT_MODE:
@@ -1285,7 +1285,7 @@ set_epson_value (Epson_Scanner *s, SANE_Int option, vo
         brightness_range.min) != SANE_STATUS_GOOD){
         return SANE_STATUS_INVAL;
       }
-      log_call("brightne = %d", value);
+      log_call("brightne = %d", *((SANE_Word *)value));
       handle_brightness (s, *((SANE_Word *) value));
       break;
     case OPT_CONTRAST:

Youez - 2016 - github.com/yon3zu
LinuXploit