[Spice-commits] src/spice-widget-egl.c

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Jul 22 13:32:12 UTC 2019


 src/spice-widget-egl.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 902cf95efda15572497efcef199c9faaf200affb
Author: Frediano Ziglio <fziglio at redhat.com>
Date:   Tue May 7 08:19:02 2019 +0100

    spice-widget-egl: Use sizeof instead of hand coded constant
    
    Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
    Acked-by: Snir Sheriber <ssheribe at redhat.com>

diff --git a/src/spice-widget-egl.c b/src/spice-widget-egl.c
index 7bae4e5..7db6608 100644
--- a/src/spice-widget-egl.c
+++ b/src/spice-widget-egl.c
@@ -129,7 +129,7 @@ static gboolean spice_egl_init_shaders(SpiceDisplay *display, GError **err)
     glLinkProgram(d->egl.prog);
     glGetProgramiv(d->egl.prog, GL_LINK_STATUS, &status);
     if (!status) {
-        glGetProgramInfoLog(d->egl.prog, 1000, &len, log);
+        glGetProgramInfoLog(d->egl.prog, sizeof(log), &len, log);
         g_set_error(err, SPICE_CLIENT_ERROR, SPICE_CLIENT_ERROR_FAILED,
                     "error linking shaders: %s", log);
         goto end;


More information about the Spice-commits mailing list