From 6cf9bb3c0a2ac0f1ee86024efe0371085186d99b Mon Sep 17 00:00:00 2001 From: bradleyhughes Date: Fri, 18 Mar 2005 09:04:37 +0000 Subject: [PATCH] use sizeof() instead of hard coding the size in 2 places --- src/Toolbar.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Toolbar.cc b/src/Toolbar.cc index 2847bb7..7e1e06d 100644 --- a/src/Toolbar.cc +++ b/src/Toolbar.cc @@ -459,7 +459,7 @@ void Toolbar::redrawClockLabel(void) { tt = localtime(&tmp); if (! tt) return; // ditto - if (! strftime(str, 1024, options.strftime_format.c_str(), tt)) + if (! strftime(str, sizeof(str), options.strftime_format.c_str(), tt)) return; // ditto bt::Pen pen(_screen->screenNumber(), style.clock_text); -- 2.11.4.GIT