From 08bb0da07953af605b4918e268272de15ac151aa Mon Sep 17 00:00:00 2001 From: srs5694 Date: Fri, 19 Feb 2010 17:19:55 -0500 Subject: Version 0.6.4 --- attributes.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'attributes.cc') diff --git a/attributes.cc b/attributes.cc index b0800fa..ac9f1fc 100644 --- a/attributes.cc +++ b/attributes.cc @@ -12,6 +12,7 @@ #include #include #include +#include #include "attributes.h" using namespace std; @@ -20,13 +21,13 @@ using namespace std; // data. Attributes::Attributes(void) { int i; - char temp[ATR_NAME_SIZE]; + ostringstream temp; // Most bits are undefined, so start by giving them an // appropriate name for (i = 1; i < NUM_ATR; i++) { - sprintf(temp, "Undefined bit #%d", i); - atNames[i] = temp; + temp << "Undefined bit #" << i; + atNames[i] = temp.str(); } // for // Now reset those names that are defined.... -- cgit v1.2.1