Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp176381rdg; Thu, 12 Oct 2023 02:17:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG/ZcTiJJIUu9/XU8f8o2M8/Ut9nIrXo67Xyopu6uUY8DtdCJaHNHNFJYOFYvCOjOPMhIMO X-Received: by 2002:a05:6102:3558:b0:454:6891:a53b with SMTP id e24-20020a056102355800b004546891a53bmr22003613vss.13.1697102249942; Thu, 12 Oct 2023 02:17:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697102249; cv=none; d=google.com; s=arc-20160816; b=KmidibvjOb+rcpIKt3ku8WuJ0dEyi09u1gdRSsbMRhEtBxTEATzvW5l7HV40P9FBTB 5cllbjRUAEvMUUlHFmVrq4tSCCJgj7NvT8NgzJJJANFjjDzAeCYhAMwYjDTTaaPRr3L/ dvC0jR8RwuiJaf7JrTaVi7rrqElEoVUexbXF5V3o/GvvczwznCBPPVQZ1id23JUNTZZB OfSraZBoBBaKRQXV7nxp4JxW7AHsxHBUzq2I5qmhypEJMIWDBoZ80roK/Ingto/dHvQA T+jCxjHplag+FXHcVR35t8WyxSxqKu4JXaEtU+RCtvy5fJcfPSemyt4mPPy5nrfTAfSt RbVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=v6dAMz+0PBoS2XhVtGEyBlFK0C+DlTpY1GdaToHa8Jc=; fh=UXffrfJ+2Boa9xdiOPauG82OWH3TOH/0rPqe7SaUHZQ=; b=0NLfulXBlnVZbxR/R3ACJ/qY7RK6DiUj7EsLqnGqSFhZLSuHvB4pEDk57O4M8gyXmH LhNK3GsW2tN6qjruRxDYv8JZdPieFNn4yDlU/DqAkqxlkYOcgq87XBAMAEUbFwZvVls8 YegdAVRNuRCjaX1tyEEaoDDtQJD/86aNLJuze6W4zvsfwhMty/4t6/vCCx4959rvKwfn mxfXYccVuUQka/wLUGXBUsExIMzZpZUjkjf/+UEXR9QR0NxPyWFbtUPwiU5YG5iFpvtZ lrFzKAJ0M7FCxRMmZ5yORHKbT4IMaELoYcO+M+bRLmA75VFMz8MD4Erat3pLAwc6rusX myAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=hYxAFqMB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id d16-20020a056a0024d000b0068e3f55075esi14683783pfv.134.2023.10.12.02.17.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 02:17:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=hYxAFqMB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id A29D180EBC84; Thu, 12 Oct 2023 02:17:27 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235373AbjJLJRU (ORCPT + 99 others); Thu, 12 Oct 2023 05:17:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234155AbjJLJRT (ORCPT ); Thu, 12 Oct 2023 05:17:19 -0400 Received: from mail-yw1-x1129.google.com (mail-yw1-x1129.google.com [IPv6:2607:f8b0:4864:20::1129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B4B791 for ; Thu, 12 Oct 2023 02:17:18 -0700 (PDT) Received: by mail-yw1-x1129.google.com with SMTP id 00721157ae682-5a7dd65052aso10671287b3.0 for ; Thu, 12 Oct 2023 02:17:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697102237; x=1697707037; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=v6dAMz+0PBoS2XhVtGEyBlFK0C+DlTpY1GdaToHa8Jc=; b=hYxAFqMBmH3OmoR+nhuDhBMTGTEmnKYxp4TESq+pOlsaIWPXgUmN9EOi17P/FYmBQk ckZCJEI7Y1Vy0PsDee6Ud4AGN795o3oOB0O8OALUm/A0iRuw0YQxyjwwWR3ikanGjpEJ 5A8JuTCa6Mn08m+mQkUL0z7kvknr9hbky64SSn7GDlKSVNhD9cjWDcas312URJ1MD4ip J+CWyMCF3V6fqdXDhN0pANPypD49aBwe28eG+XpiNiVvt70Euq4/AaCIJ/kAGd6Aq3Hh rImaD+sbwHjg6DSOcM7A4FEzarImSrdP223fJ7LbJ6LTB1XSppYIy7BlsaT1PMC6Da2f vRVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697102237; x=1697707037; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=v6dAMz+0PBoS2XhVtGEyBlFK0C+DlTpY1GdaToHa8Jc=; b=qdFvTkD9H5HIuC+B+TYmGBkDwKyFswSgHU0+RO0SLJcpJkovovqJGleW9T6GlZXFtK VlOjzIsgtmucIoOnnDshDKXDeoGRWLTnZ5Tai9sBbcU4eAf/Z/aCWujQdwa0bWIlSqLP UY7WExcuI7y/SAeyp9Tis9xb90IhbAuXmNTaaBW1vE5PJNe26UvGBiL3dOsPZGjOQAPZ lx+ZPwH/K33zRvWnswL7cbi6r8noTntij/vqggTTkMfCgPN7T48DSYvs2XBYvzTKQ9BC aEHwzKoQM/AO+R7iOzGCNjjFckVfLJkLySF22tWL6WX9Fs6K1jTb92ig/aI/K03zVnGn gGVw== X-Gm-Message-State: AOJu0YyAjZw1Jd/zJ9KI+g3L2wODeiipTXfjr4Qok2nljX+CIfVkqlpB DiQcqPzpesENohEj6wHiWTU= X-Received: by 2002:a81:6ec2:0:b0:5a1:db6a:6459 with SMTP id j185-20020a816ec2000000b005a1db6a6459mr23340529ywc.40.1697102237316; Thu, 12 Oct 2023 02:17:17 -0700 (PDT) Received: from [192.168.0.106] ([103.131.18.64]) by smtp.gmail.com with ESMTPSA id i1-20020a17090a2a0100b0027669cbc30asm597246pjd.1.2023.10.12.02.17.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 12 Oct 2023 02:17:16 -0700 (PDT) Message-ID: <1e2cfefb-c4dd-4611-867a-2b2e9e5f7467@gmail.com> Date: Thu, 12 Oct 2023 16:17:11 +0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] staging/wlan-ng: remove strcpy() use in favor of strscpy() To: Calvince Otieno , outreachy@lists.linux.dev, linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , Dan Carpenter , Archana , Simon Horman , linux-staging@lists.linux.dev References: Content-Language: en-US From: Bagas Sanjaya In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Thu, 12 Oct 2023 02:17:27 -0700 (PDT) On 12/10/2023 12:27, Calvince Otieno wrote: > if (j == -1) { /* plug the filename */ > memset(dest, 0, s3plug[i].len); > - strncpy(dest, PRISM2_USB_FWFILE, s3plug[i].len - 1); > + strscpy(dest, PRISM2_USB_FWFILE, s3plug[i].len - 1); Is this strscpy() behavior same as previous strncpy()? -- An old man doll... just what I always wanted! - Clara