weechat-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Weechat-cvs] weechat/src/plugins plugins-interface.c


From: kolter
Subject: [Weechat-cvs] weechat/src/plugins plugins-interface.c
Date: Sun, 04 Jun 2006 12:57:03 +0000

CVSROOT:        /sources/weechat
Module name:    weechat
Changes by:     kolter <kolter> 06/06/04 12:57:02

Modified files:
        src/plugins    : plugins-interface.c 

Log message:
        fix a crash in plugin function get_config with config string values 
stored as int

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/weechat/src/plugins/plugins-interface.c?cvsroot=weechat&r1=1.29&r2=1.30

Patches:
Index: plugins-interface.c
===================================================================
RCS file: /sources/weechat/weechat/src/plugins/plugins-interface.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -b -r1.29 -r1.30
--- plugins-interface.c 20 May 2006 09:45:02 -0000      1.29
+++ plugins-interface.c 4 Jun 2006 12:57:02 -0000       1.30
@@ -618,7 +618,7 @@
             return strdup (buf_temp);
             break;
         case OPTION_TYPE_INT_WITH_STRING:
-            return option->array_values[*((int *)value)];
+            return strdup (option->array_values[*((int *)value)]);
             break;
         case OPTION_TYPE_COLOR:
             color_name = gui_color_get_name (*((int *)value));




reply via email to

[Prev in Thread] Current Thread [Next in Thread]