From: Sebastian Dröge Date: Fri, 19 Jul 2013 08:07:54 +0000 (+0200) Subject: [782/906] gldownload: Use strlen() instead of sizeof(char*) X-Git-Tag: 1.16.2~955^2~1767 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=82eb297aba8ceaf20d9eaa150e725841dafb3b97;p=platform%2Fupstream%2Fgst-plugins-base.git [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] --- diff --git a/gst-libs/gst/gl/gstgldownload.c b/gst-libs/gst/gl/gstgldownload.c index d2f8e15f1..7439282bb 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; }