[patch] éviter de planter à cause d'option dark_channeltext
Publié : 20 juin 2014, 23:48
Il y a un oubli dans la définition de l'option dark_channeltext dans elconfig.c ligne 2419 qui fait planter le client lorsque le panneau de configuration est affiché. Le bug s'est manifesté au moment où j'ai essaié d'utiliser le client sous un système 64 bits.
Le fichier du patch, si copier-coller ne fonctionne pas: le181-fix_opt_multi_crash.patch.url
Code : Tout sélectionner
diff --git a/elconfig.c b/elconfig.c
index e1e29fe..4910768 100644
--- a/elconfig.c
+++ b/elconfig.c
@@ -2401,10 +2401,10 @@ static void init_ELC_vars(void)
add_var(OPT_BOOL,"caps_filter","caps",&caps_filter,change_var,1,"Caps Filter","Toggle the caps filter",CHAT);
#ifdef ENGLISH
add_var(OPT_BOOL,"show_timestamp","timestamp",&show_timestamp,change_var,0,"Show Time Stamps","Toggle time stamps for chat messages",CHAT);
- add_var(OPT_MULTI_H,"dark_channeltext","dark_channeltext",&dark_channeltext,change_int,0,"Channel Text Color","Display the channel text in a darker color for better reading on bright maps ('Dark' may be unreadable in F1 screen)",CHAT, "Normal", "Medium", "Dark");
+ add_var(OPT_MULTI_H,"dark_channeltext","dark_channeltext",&dark_channeltext,change_int,0,"Channel Text Color","Display the channel text in a darker color for better reading on bright maps ('Dark' may be unreadable in F1 screen)",CHAT, "Normal", "Medium", "Dark", NULL);
#else //ENGLISH
add_var(OPT_BOOL,"show_timestamp","timestamp",&show_timestamp,change_var,0,"Horodatage des messages","Voir les heures sur les canaux de discussions",CHAT);
- add_var(OPT_MULTI_H,"dark_channeltext","dark_channeltext",&dark_channeltext,change_dark_channeltext,0,"Couleur texte console","Affiche le texte dans une couleur noire sur les canaux pour un meilleur affichage sur les cartes claires (peut-être difficilement visible en mode consolle F1)",CHAT, "Normal", "Moyen", "Noir");
+ add_var(OPT_MULTI_H,"dark_channeltext","dark_channeltext",&dark_channeltext,change_dark_channeltext,0,"Couleur texte console","Affiche le texte dans une couleur noire sur les canaux pour un meilleur affichage sur les cartes claires (peut-être difficilement visible en mode consolle F1)",CHAT, "Normal", "Moyen", "Noir", NULL);
#endif //ENGLISH
// CHAT TAB