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/x11/wmcliphist/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/x11/wmcliphist/files/patch-history.c
--- history.c.orig
+++ history.c
@@ -1,3 +1,5 @@
+#include <sys/types.h>
+#include <sys/stat.h>
 #include <wmcliphist.h>
 
 
@@ -180,7 +182,7 @@
 history_load(gboolean dump_only)
 {
 	gchar		*buf;
-	gint		len;
+	size_t		len;
 	gint		ver;
 	FILE		*f;
 	gchar		*fname;
@@ -215,7 +217,7 @@
 	}
 	while (!feof(f)) {
 
-		if (fread(&len, sizeof(gint), 1, f) != 1)
+		if (fread(&len, sizeof(size_t), 1, f) != 1)
 			break;
 
 		if (num_items == num_items_to_keep && !dump_only) {
@@ -306,10 +308,10 @@
 
 	list_node = g_list_last(history_items);
 	while (list_node) {
-		int length;
+		size_t length;
 		hist_item = (HISTORY_ITEM *)list_node->data;
 		length = strlen(hist_item->content);
-		if (fwrite(&length, sizeof(gint), 1, f) != 1) {
+		if (fwrite(&length, sizeof(size_t), 1, f) != 1) {
 			tmp_errno = E_WRITE;
 			break;
 		}

Youez - 2016 - github.com/yon3zu
LinuXploit