Skip to content

Commit 9682216

Browse files
committed
[vpr] format fix 2
1 parent 70cc0b4 commit 9682216

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

vpr/src/draw/search_bar.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,11 @@ void search_and_highlight(GtkWidget* /*widget*/, ezgl::application* app) {
138138
bool highlight_rr_nodes(int hit_node) {
139139
t_draw_state* draw_state = get_draw_state_vars();
140140

141+
//TODO: fixed sized char array may cause overflow.
141142
char message[250] = "";
142-
auto& device_ctx = g_vpr_ctx.device();
143143

144144
if (hit_node != OPEN) {
145+
const auto& device_ctx = g_vpr_ctx.device();
145146
auto nodes = draw_expand_non_configurable_rr_nodes(hit_node);
146147
for (auto node : nodes) {
147148
if (draw_state->draw_rr_node[node].color != ezgl::MAGENTA) {

0 commit comments

Comments
 (0)