From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 0E6E547E48 for ; Sun, 29 Oct 2023 12:49:13 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 3F69768CB40; Sun, 29 Oct 2023 14:49:12 +0200 (EET) Received: from mail-qk1-f182.google.com (mail-qk1-f182.google.com [209.85.222.182]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id F21B168C9EE for ; Sun, 29 Oct 2023 14:49:05 +0200 (EET) Received: by mail-qk1-f182.google.com with SMTP id af79cd13be357-77891670417so86656885a.0 for ; Sun, 29 Oct 2023 05:49:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698583744; x=1699188544; darn=ffmpeg.org; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=g/yfUcb/GAqjX6HMuCAT2YxiiVe3PX+POadd3gLULck=; b=frfQfNQa5ASHOQ/j+CrW2kVvjjhrsgl4jCJPnyaYCTXovmxp2w21PW63qEtFGcxEOF yAyMFa7whQDen8Mj05FTjAXHI9iPgWze8DxRUHLtGSCcP1lc7CUDfOiqSRisABLgjuVj fRP5OzNUqeK1iaTWb8Q9bQRYPl8Xg4NOES10BhUl7nsBpv/UTTYYzmgmZIS0NW5s17d8 SqjcjFPVUtjHypZEX9VEMAFp9njiHkRj226mJYNZLmo1i+91oGnvI1eMHY3bIiY5Ht2c JlN+3vNR7OGOwzEmu6qVfmv259l0PD+VYqtZz2Igxjy6Q/AtWmJpsOJ8y8oQaMMbYbhC TyBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698583744; x=1699188544; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=g/yfUcb/GAqjX6HMuCAT2YxiiVe3PX+POadd3gLULck=; b=AHporeHTfaWZ5DGfnelHllUqzwG0CL40f7g29E/4xJjp8VA9d+ZE2ydpHOlzaLsZy5 EZiI6nrSqPNvJFxlcZvEhWgxaxRgSvck+D4zCLAy5u7XvKBLFy+uxLO12WpQOR+dABHI 6BuV+iF3SKHl4sZmuejCQish8zPG6kyXLEcak1EYq3DptE1puLozMXhntKIEhz0qv1Hu ZPbGNUHt6lb+Qjc/KzrWHVoQjGLLejxpbQZD7v5XYUl9EY86nA8CDItgXcPLyMAWXJir SqFXtsYK2kzD2HIOQDtpryCq3HkR6xfch4DYnNgmgY34e635mMtuWVbKOQsWyXL3kIH9 MMgQ== X-Gm-Message-State: AOJu0Yw5w7tSQkkIr5LVQR9+GDgkvGbd9rZh9nbczY2WrwAnsZ0rSMEp SXnYKum2oFLWXODGH5cYqUQ9h3BYBc8pag== X-Google-Smtp-Source: AGHT+IGfoIW5e32yLxScmj3S0qJ6gUlw152mCzu4r6HSIU1IcUP+BByHuoFdhYk7fB+rFASvKrnjTw== X-Received: by 2002:ad4:4e8f:0:b0:668:e31b:5576 with SMTP id dy15-20020ad44e8f000000b00668e31b5576mr7915250qvb.1.1698583744492; Sun, 29 Oct 2023 05:49:04 -0700 (PDT) Received: from [192.168.1.35] (c-68-56-149-176.hsd1.mi.comcast.net. [68.56.149.176]) by smtp.gmail.com with ESMTPSA id p8-20020a0cf548000000b0063d5d173a51sm2563650qvm.50.2023.10.29.05.49.03 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 29 Oct 2023 05:49:03 -0700 (PDT) Message-ID: Date: Sun, 29 Oct 2023 08:49:02 -0400 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US-large To: FFmpeg Development References: <20231029124723.398581-1-leo.izen@gmail.com> From: Leo Izen In-Reply-To: <20231029124723.398581-1-leo.izen@gmail.com> Subject: Re: [FFmpeg-devel] [PATCH v2] avformat/hls: use av_strlcopy instead of strncpy X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: On 10/29/23 08:47, Leo Izen wrote: > Avoids a -Wstringop-truncation warning by using av_strlcopy instead of > strncpy. > Changes from v1: - changed the length attribute, so now it has similar semantics to earlier. This patch has the same semantics with regard to the null-termination and the length of the string. However, it avoids a compiler warning because the compiler thinks strncpy is unsafe. - Leo Izen _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".