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:
parent
7428d94612
commit
79909cd807
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue