Commit 902cf95e authored by Frediano Ziglio's avatar Frediano Ziglio

spice-widget-egl: Use sizeof instead of hand coded constant

Signed-off-by: Frediano Ziglio's avatarFrediano Ziglio <fziglio@redhat.com>
Acked-by: Snir Sheriber's avatarSnir Sheriber <ssheribe@redhat.com>
parent 3ee17bcc
Pipeline #50292 passed with stage
in 5 minutes and 7 seconds
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment