mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-22 04:22:29 +00:00
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:
parent
1419751614
commit
d271c7387c
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue