summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <slomo@circular-chaos.org>2013-07-19 10:07:54 +0200
committerSebastian Dröge <slomo@circular-chaos.org>2013-07-19 10:07:54 +0200
commit49ffc14c6ede3b5584b9dfd30b715f0ce0a945e5 (patch)
tree8b401dbea5cbfe82bef8aa88360f2673112f0a49
parentdf97e8ab7c2b0eb0c96e34185132469342aa0c77 (diff)
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]
-rw-r--r--gst-libs/gst/gl/gstgldownload.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst-libs/gst/gl/gstgldownload.c b/gst-libs/gst/gl/gstgldownload.c
index d2f8e15..7439282 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;
}