utils/utf8.c: Fix missing format string for snprintf

Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
This commit is contained in:
Daniel Silverstone 2022-11-26 16:55:47 +00:00
parent 0c25ae5e8e
commit 764fca4f3a
No known key found for this signature in database
GPG Key ID: C30DF439F2987D74
1 changed files with 1 additions and 1 deletions

View File

@ -185,7 +185,7 @@ get_cached_cd(const char *enc_from, const char *enc_to, iconv_t *cd_out)
}
/* and safely copy the to/from/cd data into last_cd */
snprintf(last_cd.from, sizeof(last_cd.from), enc_from);
snprintf(last_cd.from, sizeof(last_cd.from), "%s", enc_from);
snprintf(last_cd.to, sizeof(last_cd.to), "%s", enc_to);
*cd_out = last_cd.cd = cd;