From 4f356f999cc3062cf1b4a23d37d76f04fe36044f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 19 Jul 2013 10:07:54 +0200 Subject: [PATCH] [782/906] gldownload: Use strlen() instead of sizeof(char*) gstgldownload.c:846:22: error: argument to 'sizeof' in 'memcpy' call is the same expression as the source; did you mean to provide an explicit length? [-Werror=sizeof-pointer-memaccess] --- gst-libs/gst/gl/gstgldownload.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst-libs/gst/gl/gstgldownload.c b/gst-libs/gst/gl/gstgldownload.c index d2f8e15f13..7439282bb2 100644 --- a/gst-libs/gst/gl/gstgldownload.c +++ b/gst-libs/gst/gl/gstgldownload.c @@ -843,7 +843,7 @@ _init_download_shader (GstGLDisplay * display, GstGLDownload * download) break; default: memcpy (text_shader_ARGB, text_shader_RGB_gles2, - sizeof (text_shader_RGB_gles2)); + strlen (text_shader_RGB_gles2) + 1); break; }