summary refs log tree commit diff stats
path: root/plugins
diff options
context:
space:
mode:
authorberkeviktor@aol.com <berkeviktor@aol.com>2011-01-12 19:00:59 +0100
committerberkeviktor@aol.com <berkeviktor@aol.com>2011-01-12 19:00:59 +0100
commit669a6a66cbf35a553e28e398a3227c748108ace0 (patch)
tree2288832c60fbcd7a1ce0f001af012d1857f6c7c0 /plugins
parenta747cf62bede35c497a16cdfcd58263304f333bd (diff)
use 1024 for buffer size, otherwise it crashes (why?)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/checksum/checksum.c10
-rw-r--r--plugins/upd/upd.c4
2 files changed, 7 insertions, 7 deletions
diff --git a/plugins/checksum/checksum.c b/plugins/checksum/checksum.c
index 8fcc57bb..af096956 100644
--- a/plugins/checksum/checksum.c
+++ b/plugins/checksum/checksum.c
@@ -1,5 +1,5 @@
 /* XChat-WDK
- * Copyright (c) 2010 Berke Viktor.
+ * Copyright (c) 2010-2011 Berke Viktor.
  *
  * Use of OpenSSL SHA256 interface: http://adamlamers.com/?p=5
  *
@@ -120,7 +120,7 @@ init ()
 	/* check whether the config file exists, if it doesn't, try to create it */
 	FILE * file_in;
 	FILE * file_out;
-	char buffer[512];
+	char buffer[1024];
 
 	config_fail = 0;
 	snprintf (buffer, sizeof (buffer), "%s/checksum.conf", xchat_get_info (ph, "xchatdirfs"));
@@ -144,7 +144,7 @@ static unsigned long long
 get_max_hash_size ()
 {
 	FILE * file_in;
-	char buffer[512];
+	char buffer[1024];
 	unsigned long long max_hash_size;
 
 	if (config_fail)
@@ -193,7 +193,7 @@ increase_max_hash_size ()
 {
 	unsigned long long size;
 	FILE * file_out;
-	char buffer[512];
+	char buffer[1024];
 
 	if (config_fail)
 	{
@@ -220,7 +220,7 @@ decrease_max_hash_size ()
 {
 	unsigned long long size;
 	FILE * file_out;
-	char buffer[512];
+	char buffer[1024];
 
 	if (config_fail)
 	{
diff --git a/plugins/upd/upd.c b/plugins/upd/upd.c
index 2d5c3a4b..89bdcf38 100644
--- a/plugins/upd/upd.c
+++ b/plugins/upd/upd.c
@@ -1,5 +1,5 @@
 /* XChat-WDK
- * Copyright (c) 2010 Berke Viktor.
+ * Copyright (c) 2010-2011 Berke Viktor.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -91,7 +91,7 @@ xchat_plugin_init (xchat_plugin *plugin_handle, char **plugin_name, char **plugi
 
 	*plugin_name = "Update Checker";
 	*plugin_desc = "Plugin for checking for XChat-WDK updates";
-	*plugin_version = "1.1";
+	*plugin_version = "1.2";
 
 	xchat_hook_command (ph, "UPDCHK", XCHAT_PRI_NORM, print_version, 0, 0);
 	xchat_command (ph, "MENU -ietc\\download.png ADD \"Help/Check for Updates\" \"UPDCHK\"");