From 37c76fd7d839fe10c36fe9385e430b080a985f9d Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Sat, 3 Dec 2022 23:40:08 +0000 Subject: [PATCH] start at pos 7 to avoid a warn --- src/screencast/wlr_screencast.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/screencast/wlr_screencast.c b/src/screencast/wlr_screencast.c index a5ccddd..505aad8 100644 --- a/src/screencast/wlr_screencast.c +++ b/src/screencast/wlr_screencast.c @@ -388,8 +388,8 @@ struct xdpw_share xdpw_wlr_chooser(struct xdpw_screencast_context *ctx) { return res; } else if (strncmp(result, "region:", 7) == 0) { // find output - int atPos = 0; - for (int i = 0; i < (int)strlen(result); ++i) { + int atPos = 7; + for (int i = 7; i < (int)strlen(result); ++i) { if (result[i] == '@'){ atPos = i; break;