Commit af842271 authored by Owen Taylor's avatar Owen Taylor Committed by Owen Taylor

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.
parent 6421c96c
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
......
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
......
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
......
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
......
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
......
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
......
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
......
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment