From 67d2a4b7fed4405da496f6fb88632f3b6f752c5c Mon Sep 17 00:00:00 2001 From: Lightning11wins Date: Tue, 10 Mar 2026 18:05:48 -0600 Subject: [PATCH] Fix a potential buffer overflow bug. --- centrallix/wgtr/wgtr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/centrallix/wgtr/wgtr.c b/centrallix/wgtr/wgtr.c index 0293dfc62..347130fbf 100755 --- a/centrallix/wgtr/wgtr.c +++ b/centrallix/wgtr/wgtr.c @@ -1561,7 +1561,7 @@ wgtrNewNode( char* name, char* type, pObjSession s, SETMAGIC(node, MGK_WGTR); strtcpy(node->Name, name, sizeof(node->Name)); - strtcpy(node->Type, type, sizeof(node->Name)); + strtcpy(node->Type, type, sizeof(node->Type)); snprintf(node->DName, sizeof(node->DName), "w%8.8lx", WGTR.SerialID++); node->x = node->r_x = rx; node->y = node->r_y = ry;