dtappbuilder: Fix for very wrong sized buffer
authorPeter Howkins <flibble@users.sf.net>
Thu, 26 Apr 2018 00:50:33 +0000 (01:50 +0100)
committerPeter Howkins <flibble@users.sf.net>
Thu, 26 Apr 2018 00:50:33 +0000 (01:50 +0100)
cde/programs/dtappbuilder/src/abmf/obj_names.c

index 931f14453560559fb7c9ea57a0daa5afe50efd21..0c867f85ccbcfbada680beaf4386026844ab6264 100644 (file)
@@ -854,7 +854,7 @@ STRING
 abmfP_get_widget_name_for_res_file(ABObj obj)
 {
     static char        name[MAX_NAME_SIZE];
-    char       nameTemp[sizeof(MAX_NAME_SIZE)];
+    char       nameTemp[sizeof(name)];
     *name = 0;
     assert(abmfP_parent(obj) != NULL);