On Tue, Nov 04, 2003 at 09:30:54PM +0000, John Lamb wrote:
Richard Bos wrote:
{ ...... const char *operation; .... case Item::RPMUpgrade: if (Interactive) operation = "-Uvh"; else operation = "-Uv"; break; .... cout << _("Executing RPM (")<<operation<<")..." << endl;
Have you tried putting a null character at the end of the strings: i.e.
operation = "-Uvh\0"
This is a C-style string - I try to avoid them because std::string is better - and should be null terminated.
Actually, "-Uvh" is already null terminated and you shouldn't use the \0 explicitly. The parenthesis around the cout are somewhat weird, and I dunno what is that _. Better: cout << "Executing RPM (" << operatiion << ")..." << endl; Are you sure that the case Item::RPMUpgrade is really reached? Try initializing operation with something, like const char *operator = "invalidop"; []s Davi