[Commits] mainwindow.c 1.274.2.351 1.274.2.352 prefs_account.c 1.105.2.176 1.105.2.177 prefs_compose_writing.c 1.1.2.33 1.1.2.34 prefs_logging.c 1.1.2.23 1.1.2.24 prefs_message.c 1.1.2.36 1.1.2.37 prefs_msg_colors.c 1.1.2.48 1.1.2.49 prefs_other.c 1.1.2.47 1.1.2.48 prefs_receive.c 1.1.2.31 1.1.2.32 prefs_summaries.c 1.1.2.71 1.1.2.72 prefs_wrapping.c 1.1.2.25 1.1.2.26
colin at claws-mail.org
colin at claws-mail.org
Wed Sep 19 16:48:48 CEST 2012
Update of /home/claws-mail/claws/src
In directory srv:/tmp/cvs-serv14073/src
Modified Files:
Tag: gtk2
mainwindow.c prefs_account.c prefs_compose_writing.c
prefs_logging.c prefs_message.c prefs_msg_colors.c
prefs_other.c prefs_receive.c prefs_summaries.c
prefs_wrapping.c
Log Message:
2012-09-19 [colin] 3.8.1cvs64
* src/mainwindow.c
Check possible overflow
* src/prefs_account.c
* src/prefs_compose_writing.c
* src/prefs_logging.c
* src/prefs_message.c
* src/prefs_msg_colors.c
* src/prefs_other.c
* src/prefs_receive.c
* src/prefs_summaries.c
* src/prefs_wrapping.c
fix GtkAdjustment casts
* src/common/ssl.c
fix warnings
* src/gtk/gtkaspell.c
fix warnings
Index: prefs_other.c
===================================================================
RCS file: /home/claws-mail/claws/src/Attic/prefs_other.c,v
retrieving revision 1.1.2.47
retrieving revision 1.1.2.48
diff -u -d -r1.1.2.47 -r1.1.2.48
--- prefs_other.c 12 Sep 2012 13:14:27 -0000 1.1.2.47
+++ prefs_other.c 19 Sep 2012 14:48:46 -0000 1.1.2.48
@@ -542,7 +542,7 @@
gtk_widget_show (label_iotimeout);
gtk_box_pack_start (GTK_BOX (hbox1), label_iotimeout, FALSE, FALSE, 0);
- spinbtn_iotimeout_adj = gtk_adjustment_new (60, 0, 1000, 1, 10, 0);
+ spinbtn_iotimeout_adj = GTK_ADJUSTMENT(gtk_adjustment_new (60, 0, 1000, 1, 10, 0));
spinbtn_iotimeout = gtk_spin_button_new
(GTK_ADJUSTMENT (spinbtn_iotimeout_adj), 1, 0);
gtk_widget_show (spinbtn_iotimeout);
Index: prefs_logging.c
===================================================================
RCS file: /home/claws-mail/claws/src/Attic/prefs_logging.c,v
retrieving revision 1.1.2.23
retrieving revision 1.1.2.24
diff -u -d -r1.1.2.23 -r1.1.2.24
--- prefs_logging.c 7 Jul 2012 07:09:29 -0000 1.1.2.23
+++ prefs_logging.c 19 Sep 2012 14:48:46 -0000 1.1.2.24
@@ -146,7 +146,7 @@
PACK_CHECK_BUTTON (hbox_clip_network_log, checkbtn_clip_network_log,
_("Restrict the log window to"));
- spinbtn_network_log_length_adj = gtk_adjustment_new (500, 0, G_MAXINT, 1, 10, 0);
+ spinbtn_network_log_length_adj = GTK_ADJUSTMENT(gtk_adjustment_new (500, 0, G_MAXINT, 1, 10, 0));
spinbtn_network_log_length = gtk_spin_button_new
(GTK_ADJUSTMENT (spinbtn_network_log_length_adj), 1, 0);
gtk_widget_show (spinbtn_network_log_length);
@@ -253,7 +253,7 @@
PACK_CHECK_BUTTON (hbox_clip_filtering_log, checkbtn_clip_filtering_log,
_("Restrict the log window to"));
- spinbtn_filtering_log_length_adj = gtk_adjustment_new (500, 0, G_MAXINT, 1, 10, 0);
+ spinbtn_filtering_log_length_adj = GTK_ADJUSTMENT(gtk_adjustment_new (500, 0, G_MAXINT, 1, 10, 0));
spinbtn_filtering_log_length = gtk_spin_button_new
(GTK_ADJUSTMENT (spinbtn_filtering_log_length_adj), 1, 0);
gtk_widget_show (spinbtn_filtering_log_length);
Index: prefs_message.c
===================================================================
RCS file: /home/claws-mail/claws/src/Attic/prefs_message.c,v
retrieving revision 1.1.2.36
retrieving revision 1.1.2.37
diff -u -d -r1.1.2.36 -r1.1.2.37
--- prefs_message.c 7 Jul 2012 07:09:29 -0000 1.1.2.36
+++ prefs_message.c 19 Sep 2012 14:48:46 -0000 1.1.2.37
@@ -177,7 +177,7 @@
gtk_box_pack_start (GTK_BOX (hbox_linespc), label_linespc,
FALSE, FALSE, 0);
- spinbtn_linespc_adj = gtk_adjustment_new (2, 0, 16, 1, 1, 0);
+ spinbtn_linespc_adj = GTK_ADJUSTMENT(gtk_adjustment_new (2, 0, 16, 1, 1, 0));
spinbtn_linespc = gtk_spin_button_new
(GTK_ADJUSTMENT (spinbtn_linespc_adj), 1, 0);
gtk_widget_show (spinbtn_linespc);
@@ -210,7 +210,7 @@
gtk_widget_show (label_scr);
gtk_box_pack_start (GTK_BOX (hbox_scr), label_scr, FALSE, FALSE, 0);
- spinbtn_scrollstep_adj = gtk_adjustment_new (1, 1, 100, 1, 10, 0);
+ spinbtn_scrollstep_adj = GTK_ADJUSTMENT(gtk_adjustment_new (1, 1, 100, 1, 10, 0));
spinbtn_scrollstep = gtk_spin_button_new
(GTK_ADJUSTMENT (spinbtn_scrollstep_adj), 1, 0);
gtk_widget_show (spinbtn_scrollstep);
Index: prefs_wrapping.c
===================================================================
RCS file: /home/claws-mail/claws/src/prefs_wrapping.c,v
retrieving revision 1.1.2.25
retrieving revision 1.1.2.26
diff -u -d -r1.1.2.25 -r1.1.2.26
--- prefs_wrapping.c 7 Jul 2012 07:09:30 -0000 1.1.2.25
+++ prefs_wrapping.c 19 Sep 2012 14:48:46 -0000 1.1.2.26
@@ -90,7 +90,7 @@
gtk_widget_show (label_linewrap);
gtk_box_pack_start (GTK_BOX (hbox1), label_linewrap, FALSE, FALSE, 4);
- spinbtn_linewrap_adj = gtk_adjustment_new (72, 20, 1024, 1, 10, 0);
+ spinbtn_linewrap_adj = GTK_ADJUSTMENT(gtk_adjustment_new (72, 20, 1024, 1, 10, 0));
spinbtn_linewrap = gtk_spin_button_new
(GTK_ADJUSTMENT (spinbtn_linewrap_adj), 1, 0);
gtk_widget_set_size_request (spinbtn_linewrap, 64, -1);
Index: mainwindow.c
===================================================================
RCS file: /home/claws-mail/claws/src/mainwindow.c,v
retrieving revision 1.274.2.351
retrieving revision 1.274.2.352
diff -u -d -r1.274.2.351 -r1.274.2.352
--- mainwindow.c 12 Sep 2012 09:23:12 -0000 1.274.2.351
+++ mainwindow.c 19 Sep 2012 14:48:46 -0000 1.274.2.352
@@ -3616,7 +3616,9 @@
buf++;
if (!strncmp(buf, "mailto:", strlen("mailto:")))
with_plus = FALSE;
- for (i = 0; *buf != '>' && *buf != 0x00 && i<maxlen; tmp[i++] = *(buf++));
+ for (i = 0;
+ *buf != '>' && *buf != 0x00 && i<maxlen && i < sizeof(tmp) - 1;
+ tmp[i++] = *(buf++));
buf++;
}
else {
Index: prefs_account.c
===================================================================
RCS file: /home/claws-mail/claws/src/prefs_account.c,v
retrieving revision 1.105.2.176
retrieving revision 1.105.2.177
diff -u -d -r1.105.2.176 -r1.105.2.177
--- prefs_account.c 16 Sep 2012 21:56:20 -0000 1.105.2.176
+++ prefs_account.c 19 Sep 2012 14:48:46 -0000 1.105.2.177
@@ -1520,7 +1520,7 @@
gtk_box_pack_start (GTK_BOX (hbox2), maxarticle_label, FALSE, FALSE, 0);
maxarticle_spinbtn_adj =
- gtk_adjustment_new (300, 0, 10000, 10, 100, 0);
+ GTK_ADJUSTMENT(gtk_adjustment_new (300, 0, 10000, 10, 100, 0));
maxarticle_spinbtn = gtk_spin_button_new
(GTK_ADJUSTMENT (maxarticle_spinbtn_adj), 10, 0);
gtk_widget_show (maxarticle_spinbtn);
Index: prefs_receive.c
===================================================================
RCS file: /home/claws-mail/claws/src/Attic/prefs_receive.c,v
retrieving revision 1.1.2.31
retrieving revision 1.1.2.32
diff -u -d -r1.1.2.31 -r1.1.2.32
--- prefs_receive.c 7 Jul 2012 07:09:29 -0000 1.1.2.31
+++ prefs_receive.c 19 Sep 2012 14:48:46 -0000 1.1.2.32
@@ -162,7 +162,7 @@
PACK_CHECK_BUTTON (hbox_autochk, checkbtn_autochk,
_("Check for new mail every"));
- spinbtn_autochk_adj = gtk_adjustment_new (5, 1, 100, 1, 10, 0);
+ spinbtn_autochk_adj = GTK_ADJUSTMENT(gtk_adjustment_new (5, 1, 100, 1, 10, 0));
spinbtn_autochk = gtk_spin_button_new
(GTK_ADJUSTMENT (spinbtn_autochk_adj), 1, 0);
gtk_widget_show (spinbtn_autochk);
Index: prefs_summaries.c
===================================================================
RCS file: /home/claws-mail/claws/src/Attic/prefs_summaries.c,v
retrieving revision 1.1.2.71
retrieving revision 1.1.2.72
diff -u -d -r1.1.2.71 -r1.1.2.72
--- prefs_summaries.c 7 Jul 2012 07:09:29 -0000 1.1.2.71
+++ prefs_summaries.c 19 Sep 2012 14:48:46 -0000 1.1.2.72
@@ -385,7 +385,7 @@
gtk_widget_show (label_ng_abbrev);
gtk_box_pack_start (GTK_BOX (hbox1), label_ng_abbrev, FALSE, FALSE, 0);
- spinbtn_ng_abbrev_len_adj = gtk_adjustment_new (16, 0, 999, 1, 10, 0);
+ spinbtn_ng_abbrev_len_adj = GTK_ADJUSTMENT(gtk_adjustment_new (16, 0, 999, 1, 10, 0));
spinbtn_ng_abbrev_len = gtk_spin_button_new
(GTK_ADJUSTMENT (spinbtn_ng_abbrev_len_adj), 1, 0);
gtk_widget_show (spinbtn_ng_abbrev_len);
@@ -484,7 +484,7 @@
hbox1 = gtk_hbox_new (FALSE, 8);
gtk_box_pack_start (GTK_BOX (hbox1), radio_mark_as_read_on_select, FALSE, FALSE, 0);
- spinbtn_mark_as_read_delay_adj = gtk_adjustment_new (0, 0, 60, 1, 10, 0);
+ spinbtn_mark_as_read_delay_adj = GTK_ADJUSTMENT(gtk_adjustment_new (0, 0, 60, 1, 10, 0));
spinbtn_mark_as_read_delay = gtk_spin_button_new
(GTK_ADJUSTMENT (spinbtn_mark_as_read_delay_adj), 1, 0);
gtk_box_pack_start (GTK_BOX (hbox1), spinbtn_mark_as_read_delay,
Index: prefs_compose_writing.c
===================================================================
RCS file: /home/claws-mail/claws/src/Attic/prefs_compose_writing.c,v
retrieving revision 1.1.2.33
retrieving revision 1.1.2.34
diff -u -d -r1.1.2.33 -r1.1.2.34
--- prefs_compose_writing.c 7 Jul 2012 07:09:29 -0000 1.1.2.33
+++ prefs_compose_writing.c 19 Sep 2012 14:48:46 -0000 1.1.2.34
@@ -147,7 +147,7 @@
PACK_CHECK_BUTTON (hbox_autosave, checkbtn_autosave,
_("Automatically save message to Drafts folder every"));
- spinbtn_autosave_adj = gtk_adjustment_new (50, 0, 1000, 1, 10, 0);
+ spinbtn_autosave_adj = GTK_ADJUSTMENT(gtk_adjustment_new (50, 0, 1000, 1, 10, 0));
spinbtn_autosave_length = gtk_spin_button_new
(GTK_ADJUSTMENT (spinbtn_autosave_adj), 1, 0);
gtk_widget_set_size_request (spinbtn_autosave_length, 64, -1);
@@ -168,7 +168,7 @@
gtk_widget_show (label_undolevel);
gtk_box_pack_start (GTK_BOX (hbox_undolevel), label_undolevel, FALSE, FALSE, 0);
- spinbtn_undolevel_adj = gtk_adjustment_new (50, 0, 100, 1, 10, 0);
+ spinbtn_undolevel_adj = GTK_ADJUSTMENT(gtk_adjustment_new (50, 0, 100, 1, 10, 0));
spinbtn_undolevel = gtk_spin_button_new
(GTK_ADJUSTMENT (spinbtn_undolevel_adj), 1, 0);
gtk_widget_show (spinbtn_undolevel);
@@ -184,7 +184,7 @@
PACK_CHECK_BUTTON (hbox_warn_large_insert, checkbtn_warn_large_insert,
_("Warn when inserting a file larger than"));
- spinbtn_warn_large_insert_adj = gtk_adjustment_new (50, 0, 10000, 1, 10, 0);
+ spinbtn_warn_large_insert_adj = GTK_ADJUSTMENT(gtk_adjustment_new (50, 0, 10000, 1, 10, 0));
spinbtn_warn_large_insert_size = gtk_spin_button_new
(GTK_ADJUSTMENT (spinbtn_warn_large_insert_adj), 1, 0);
gtk_widget_set_size_request (spinbtn_warn_large_insert_size, 64, -1);
Index: prefs_msg_colors.c
===================================================================
RCS file: /home/claws-mail/claws/src/prefs_msg_colors.c,v
retrieving revision 1.1.2.48
retrieving revision 1.1.2.49
diff -u -d -r1.1.2.48 -r1.1.2.49
--- prefs_msg_colors.c 7 Jul 2012 07:09:29 -0000 1.1.2.48
+++ prefs_msg_colors.c 19 Sep 2012 14:48:46 -0000 1.1.2.49
@@ -633,7 +633,7 @@
}
}
- color_dialog = GTK_COLOR_SELECTION_DIALOG(gtk_color_selection_dialog_new(title));
+ color_dialog = gtk_color_selection_dialog_new(title);
g_free(title);
gtk_window_set_position(GTK_WINDOW(color_dialog), GTK_WIN_POS_CENTER);
gtk_window_set_modal(GTK_WINDOW(color_dialog), TRUE);
More information about the Commits
mailing list