From a88fa576cacf515e35f3634c3b573a9c1a222eda Mon Sep 17 00:00:00 2001 From: Stas Degteff Date: Thu, 27 Oct 2005 19:38:16 +0000 Subject: [PATCH] Fix printf() parameters --- goldlib/gcfg/gximail6.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/goldlib/gcfg/gximail6.cpp b/goldlib/gcfg/gximail6.cpp index 315604f..4e5024e 100644 --- a/goldlib/gcfg/gximail6.cpp +++ b/goldlib/gcfg/gximail6.cpp @@ -219,7 +219,8 @@ void gareafile::ReadIMail(char* tag) { } } char buff[78]; - sprintf(buff, "* Error: IMAIL %c.%02c (structure revision %c.%02c) is not supported - Skipping.\n", imver[0], imver[1], imstructver[0], imstructver[1]); + sprintf( buff, "* Error: IMAIL %u.%02u (structure revision %u.%02u) is not supported - Skipping.\n", + unsigned(imver[0]), unsigned(imver[1]), unsigned(imstructver[0]), unsigned(imstructver[1]) ); std::cout << buff; // std::cout << "* Error: IMAIL " << imver[0] << '.' << std::setfill('0') << std::setw(2) << imver[1] << " (structure revision " << imstructver[0] << '.' << std::setfill('0') << std::setw(2) << imstructver[1] << ") is not supported - Skipping." << std::endl;