[gtk/master.vs12: 2/3] gtkffmediafile.c: Use g_snprintf()




commit 0268baa9385d1a95adec664755eaa08fe732ed3d
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]