start at pos 7 to avoid a warn

This commit is contained in:
vaxerski 2022-12-03 23:40:08 +00:00
parent 2dc95fe02f
commit 37c76fd7d8

View file

@ -388,8 +388,8 @@ struct xdpw_share xdpw_wlr_chooser(struct xdpw_screencast_context *ctx) {
return res; return res;
} else if (strncmp(result, "region:", 7) == 0) { } else if (strncmp(result, "region:", 7) == 0) {
// find output // find output
int atPos = 0; int atPos = 7;
for (int i = 0; i < (int)strlen(result); ++i) { for (int i = 7; i < (int)strlen(result); ++i) {
if (result[i] == '@'){ if (result[i] == '@'){
atPos = i; atPos = i;
break; break;