Allocate correct amount of memory for strings.

Wed Dec  9 00:41:41 1998  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkrc.c (gtk_rc_add_initial_default_files): Allocate
	correct amount of memory for strings.
This commit is contained in:
Owen Taylor 1998-12-09 05:43:35 +00:00 committed by Owen Taylor
parent 6421c96ccc
commit af84227184
8 changed files with 37 additions and 2 deletions

View File

@ -1,3 +1,8 @@
Wed Dec 9 00:41:41 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkrc.c (gtk_rc_add_initial_default_files): Allocate
correct amount of memory for strings.
Tue Dec 8 18:29:05 CST 1998 Shawn T. Amundson <amundson@gtk.org>
* Released GTK+ 1.1.6

View File

@ -1,3 +1,8 @@
Wed Dec 9 00:41:41 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkrc.c (gtk_rc_add_initial_default_files): Allocate
correct amount of memory for strings.
Tue Dec 8 18:29:05 CST 1998 Shawn T. Amundson <amundson@gtk.org>
* Released GTK+ 1.1.6

View File

@ -1,3 +1,8 @@
Wed Dec 9 00:41:41 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkrc.c (gtk_rc_add_initial_default_files): Allocate
correct amount of memory for strings.
Tue Dec 8 18:29:05 CST 1998 Shawn T. Amundson <amundson@gtk.org>
* Released GTK+ 1.1.6

View File

@ -1,3 +1,8 @@
Wed Dec 9 00:41:41 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkrc.c (gtk_rc_add_initial_default_files): Allocate
correct amount of memory for strings.
Tue Dec 8 18:29:05 CST 1998 Shawn T. Amundson <amundson@gtk.org>
* Released GTK+ 1.1.6

View File

@ -1,3 +1,8 @@
Wed Dec 9 00:41:41 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkrc.c (gtk_rc_add_initial_default_files): Allocate
correct amount of memory for strings.
Tue Dec 8 18:29:05 CST 1998 Shawn T. Amundson <amundson@gtk.org>
* Released GTK+ 1.1.6

View File

@ -1,3 +1,8 @@
Wed Dec 9 00:41:41 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkrc.c (gtk_rc_add_initial_default_files): Allocate
correct amount of memory for strings.
Tue Dec 8 18:29:05 CST 1998 Shawn T. Amundson <amundson@gtk.org>
* Released GTK+ 1.1.6

View File

@ -1,3 +1,8 @@
Wed Dec 9 00:41:41 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkrc.c (gtk_rc_add_initial_default_files): Allocate
correct amount of memory for strings.
Tue Dec 8 18:29:05 CST 1998 Shawn T. Amundson <amundson@gtk.org>
* Released GTK+ 1.1.6

View File

@ -336,12 +336,12 @@ gtk_rc_add_initial_default_files (void)
}
else
{
str = g_malloc (strlen(GTK_SYSCONFDIR) + strlen("/gtkrc"));
str = g_malloc (strlen(GTK_SYSCONFDIR) + strlen("/gtkrc") + 1);
sprintf (str, "%s%s", GTK_SYSCONFDIR, "/gtkrc");
gtk_rc_add_default_file (str);
var = g_get_home_dir ();
str = g_malloc (strlen(var) + strlen("/.gtkrc"));
str = g_malloc (strlen(var) + strlen("/.gtkrc") + 1);
sprintf (str, "%s%s", var, "/.gtkrc");
gtk_rc_add_default_file (str);
}