From 6199c24ff3c516cdd836b785bd04ccc345004599 Mon Sep 17 00:00:00 2001 From: indigoparadox Date: Sun, 2 Jun 2024 21:40:27 -0400 Subject: [PATCH] Adapt retrohtr to GUI label change. --- src/retrohtr.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/retrohtr.h b/src/retrohtr.h index 6a8ea0f5..2eec5e26 100644 --- a/src/retrohtr.h +++ b/src/retrohtr.h @@ -723,10 +723,8 @@ MERROR_RETVAL retrohtr_tree_size( ctl.base.y = retrohtr_node( tree, node_idx )->y; ctl.base.w = 0; ctl.base.h = 0; - strncpy( ctl.BUTTON.label, - mhtml_tag( parser, - retrohtr_node( tree, node_idx )->tag )->INPUT.value, - RETROGUI_BTN_LBL_SZ_MAX ); + ctl.BUTTON.label = mhtml_tag( parser, + retrohtr_node( tree, node_idx )->tag )->INPUT.value; /* Grab determined size back from control. */ retrohtr_node( tree, node_idx )->w = ctl.base.w;