From 54c58bba21ee0c233c8a56c231f2e173caa43716 Mon Sep 17 00:00:00 2001
From: Mathias Gumz <akira at fluxbox dot org>
Date: Sat, 3 Oct 2009 09:06:34 +0200
Subject: cosmetic: use FbTk::StringUtil::number2String()

---
 src/Xinerama.hh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/Xinerama.hh b/src/Xinerama.hh
index 876005f..9d7941b 100644
--- a/src/Xinerama.hh
+++ b/src/Xinerama.hh
@@ -92,7 +92,6 @@ void XineramaHeadMenu<ItemType>::reloadHeads()
     FbTk::RefCount<FbTk::Command<void> > saverc_cmd(new FbTk::SimpleCommand<Fluxbox>(
                                      *Fluxbox::instance(), 
                                      &Fluxbox::save_rc));
-    char tname[128];
     for (int i=1; i <= m_screen.numHeads(); ++i) {
         // TODO: nls
 /*
@@ -102,9 +101,10 @@ void XineramaHeadMenu<ItemType>::reloadHeads()
                     FBNLS::XineramaDefaultHeadFormat,
                     "Head %d"), i); //m_id starts at 0
 */
-        sprintf(tname, "Head %d", i);
+        std::string tname("Head ");
+        tname += FbTk::StringUtil::number2String(i);
         insert(new XineramaHeadMenuItem<ItemType>(
-                   tname, m_object, i, saverc_cmd));
+                   tname.c_str(), m_object, i, saverc_cmd));
     }
     // TODO: nls
     insert(new XineramaHeadMenuItem<ItemType>(
-- 
cgit v0.11.2