mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Cleanup: Converted all sprintf to snprintf
This commit is contained in:
parent
9e5a0f0e61
commit
48167f53eb
8 changed files with 24 additions and 32 deletions
|
@ -108,7 +108,7 @@ int CmdLogo::execute (std::string& output)
|
|||
{
|
||||
value += 167;
|
||||
char block [24];
|
||||
sprintf (block, "\033[48;5;%dm \033[0m", value);
|
||||
snprintf (block, 24, "\033[48;5;%dm \033[0m", value);
|
||||
output += block;
|
||||
}
|
||||
}
|
||||
|
@ -122,7 +122,7 @@ int CmdLogo::execute (std::string& output)
|
|||
{
|
||||
value += 167;
|
||||
char block [24];
|
||||
sprintf (block, "\033[48;5;%dm \033[0m", value);
|
||||
snprintf (block, 24, "\033[48;5;%dm \033[0m", value);
|
||||
output += block;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue