[gtk/matthiasc/for-master: 50/51] gtkffmediafile.c: Use g_snprintf()
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/for-master: 50/51] gtkffmediafile.c: Use g_snprintf()
- Date: Sat, 9 Jan 2021 03:24:54 +0000 (UTC)
commit 2b8ad6c4b52564114d39449c5000a2545750cb41
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]