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

@ -166,7 +166,7 @@ find_or_create (GHashTable *id_table, MuMsg *msg, guint docid)
msgid = mu_msg_get_path (msg); /* fake it */
if (!msgid) { /* no path either? seems to happen... */
g_warning ("message without path");
snprintf (fake, sizeof(fake), "fake:%p", (gpointer)msg);
g_snprintf (fake, sizeof(fake), "fake:%p", (gpointer)msg);
msgid = fake;
}