From ea4f33409a978140493a43567fa3a3454ab03479 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Sat, 28 Nov 2020 19:33:07 +0100 Subject: Update even more snprintfs Use size of actual buffers instead of magic numbers --- AffinityPanel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'AffinityPanel.c') diff --git a/AffinityPanel.c b/AffinityPanel.c index 9c2a6e7c..e491b524 100644 --- a/AffinityPanel.c +++ b/AffinityPanel.c @@ -294,7 +294,7 @@ static MaskItem* AffinityPanel_addObject(AffinityPanel* this, hwloc_obj_t obj, u //left -= len; } - xSnprintf(buf, 64, "%s %s%u", type_name, index_prefix, index); + xSnprintf(buf, sizeof(buf), "%s %s%u", type_name, index_prefix, index); MaskItem* item = MaskItem_newMask(buf, indent_buf, obj->complete_cpuset, false); if (parent) -- cgit v1.2.3