projects
/
platform
/
upstream
/
gst-plugins-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e32e8f4
)
[782/906] gldownload: Use strlen() instead of sizeof(char*)
author
Sebastian Dröge
<slomo@circular-chaos.org>
Fri, 19 Jul 2013 08:07:54 +0000
(10:07 +0200)
committer
Tim-Philipp Müller
<tim@centricular.com>
Sat, 9 Dec 2017 19:31:30 +0000
(19:31 +0000)
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
patch
|
blob
|
history
diff --git
a/gst-libs/gst/gl/gstgldownload.c
b/gst-libs/gst/gl/gstgldownload.c
index d2f8e15f1358f67a7f45f4684b3b87ee6e51aeeb..7439282bb2c306690a427827266f4f349979b926 100644
(file)
--- 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,
- s
izeof (text_shader_RGB_gles2)
);
+ s
trlen (text_shader_RGB_gles2) + 1
);
break;
}