* `helpText' is now zero-terminated.

This commit is contained in:
Eelco Dolstra 2010-02-24 13:24:27 +00:00
parent 21b134b4e5
commit fefd467539
5 changed files with 5 additions and 5 deletions

View File

@ -70,7 +70,7 @@ typedef void (* Operation) (Globals & globals,
void printHelp()
{
cout << string((char *) helpText, sizeof helpText);
cout << string((char *) helpText);
}

View File

@ -10,7 +10,7 @@ using namespace nix;
void printHelp()
{
std::cout << string((char *) helpText, sizeof helpText);
std::cout << string((char *) helpText);
}

View File

@ -19,7 +19,7 @@ using namespace nix;
void printHelp()
{
std::cout << string((char *) helpText, sizeof helpText);
std::cout << string((char *) helpText);
}

View File

@ -21,7 +21,7 @@ typedef void (* Operation) (Strings opFlags, Strings opArgs);
void printHelp()
{
cout << string((char *) helpText, sizeof helpText);
cout << string((char *) helpText);
}

View File

@ -765,7 +765,7 @@ void run(Strings args)
void printHelp()
{
std::cout << string((char *) helpText, sizeof helpText);
std::cout << string((char *) helpText);
}