use g_snprintf instead of snprintf

Seems the latter cannot be found on some platforms; perhaps a
c++/namespace thing?

Use g_snprintf instead.
This commit is contained in:
Dirk-Jan C. Binnema
2020-01-07 23:15:22 +02:00
parent 38a91f3696
commit b2014fe93e
7 changed files with 12 additions and 12 deletions

View File

@ -220,7 +220,7 @@ std::string
Mu::date_to_time_t_string (int64_t t)
{
char buf[sizeof(InternalDateMax)];
snprintf (buf, sizeof(buf), InternalDateFormat, t);
g_snprintf (buf, sizeof(buf), InternalDateFormat, t);
return buf;
}
@ -398,7 +398,7 @@ std::string
Mu::size_to_string (int64_t size)
{
char buf[sizeof(SizeMax)];
snprintf (buf, sizeof(buf), SizeFormat, size);
g_snprintf (buf, sizeof(buf), SizeFormat, size);
return buf;
}