[782/906] gldownload: Use strlen() instead of sizeof(char*)
authorSebastian Dröge <slomo@circular-chaos.org>
Fri, 19 Jul 2013 08:07:54 +0000 (10:07 +0200)
committerMatthew Waters <ystreet00@gmail.com>
Sat, 15 Mar 2014 17:37:00 +0000 (18:37 +0100)
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

index d2f8e15..7439282 100644 (file)
@@ -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;
       }