terminate the spaces string correctly. Spotted by bill.

2006-09-22  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpstatusbar.c (gimp_statusbar_progress_style_set):
	terminate the spaces string correctly. Spotted by bill.
This commit is contained in:
Michael Natterer 2006-09-22 17:57:11 +00:00 committed by Michael Natterer
parent 1419751614
commit d271c7387c
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2006-09-22 Michael Natterer <mitch@gimp.org>
* app/display/gimpstatusbar.c (gimp_statusbar_progress_style_set):
terminate the spaces string correctly. Spotted by bill.
2006-09-22 Michael Natterer <mitch@gimp.org>
* app/display/gimpstatusbar.[ch]: changed all message setting

View file

@ -842,7 +842,7 @@ gimp_statusbar_progress_style_set (GtkWidget *widget,
n_spaces + 1);
memset (statusbar->temp_spaces, ' ', n_spaces);
statusbar->temp_spaces[n_spaces + 1] = '\0';
statusbar->temp_spaces[n_spaces] = '\0';
pango_layout_set_text (layout, statusbar->temp_spaces, -1);
pango_layout_get_pixel_size (layout, &layout_width, NULL);