1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-11 13:50:48 -05:00

Another possible NULL pointer fix.

This commit is contained in:
QC 2015-01-07 17:48:10 +01:00
parent 7428d94612
commit 79909cd807

View file

@ -232,7 +232,7 @@ void textbox_draw ( textbox *tb )
int cursor_x = 0; int cursor_x = 0;
int cursor_width = MAX ( 2, font_height / 10 ); int cursor_width = MAX ( 2, font_height / 10 );
pango_layout_set_text ( tb->layout, tb->text, strlen ( tb->text ) ); pango_layout_set_text ( tb->layout, text, text_len );
if ( tb->flags & TB_EDITABLE ) { if ( tb->flags & TB_EDITABLE ) {
PangoRectangle pos; PangoRectangle pos;