Simon Ser
|
c2952411d3
|
examples/screencopy-dmabuf: stop using strncpy
strncpy doesn't guarantee that the result is zero-terminated.
|
3 years ago |
Tudor Brindus
|
ec3f432bbb
|
examples: use `perror` instead of `fprintf` GNU %m `printf` extension
|
4 years ago |
Simon Ser
|
297354f847
|
Remove unnecessary wl_display_dispatch calls
wl_display_roundtrip already takes care of dispatching the display.
|
4 years ago |
Andri Yngvason
|
a54ed85881
|
examples: screencopy-dmabuf: Fix y-inversion
|
5 years ago |
Simon Ser
|
4615ce9099
|
examples/screencopy-dmabuf: call strncpy with maxlen - 1
The original code wasn't wrong since we were manually writing a null
byte anyway, but this makes GCC happy.
Closes: https://github.com/swaywm/wlroots/issues/2273
|
5 years ago |
Andri Yngvason
|
e0d4f75172
|
examples: Add screencopy-dmabuf example
|
5 years ago |