[gtk/matthiasc/for-master: 3/3] gtkffmediafile.c: Use g_snprintf()
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/for-master: 3/3] gtkffmediafile.c: Use g_snprintf()
- Date: Wed, 6 Jan 2021 13:14:39 +0000 (UTC)
commit 1cc83dd25a492a680c673e3a00641aa094e568b7
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Wed Dec 30 18:14:20 2020 +0800
gtkffmediafile.c: Use g_snprintf()
Visual Studio 2013 is just shy of being sufficiently C99-compliant to
build GTK master, as it did not support snprintf() in its CRT
implementation.
Use g_snprintf() to cover for this.
modules/media/gtkffmediafile.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/modules/media/gtkffmediafile.c b/modules/media/gtkffmediafile.c
index cf7a03489f..9df9e6556f 100644
--- a/modules/media/gtkffmediafile.c
+++ b/modules/media/gtkffmediafile.c
@@ -217,7 +217,7 @@ gtk_ff_media_file_set_ffmpeg_error (GtkFfMediaFile *video,
return;
if (av_strerror (av_errnum, s, sizeof (s) != 0))
- snprintf (s, sizeof (s), _("Unspecified error decoding video"));
+ g_snprintf (s, sizeof (s), _("Unspecified error decoding video"));
gtk_media_stream_error (GTK_MEDIA_STREAM (video),
G_IO_ERROR,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]