1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-03 04:23:42 -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_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 ) {
PangoRectangle pos;