From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 31087 invoked from network); 18 Dec 2020 11:48:44 -0000 Received: from ewsd.inri.net (107.191.116.128) by inbox.vuxu.org with ESMTPUTF8; 18 Dec 2020 11:48:44 -0000 Received: from mail-qt1-f173.google.com ([209.85.160.173]) by ewsd; Fri Dec 18 06:44:12 -0500 2020 Received: by mail-qt1-f173.google.com with SMTP id h19so1000664qtq.13 for <9front@9front.org>; Fri, 18 Dec 2020 03:44:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-transfer-encoding; bh=W4aIv1jk6zbeqdlp6pN8UDtPKILT9gkE9j6nBclq2+E=; b=Shi1G6GD5KCCVGmTIuA+CQnC4eOFOD3GyAVlYvzkjeUSpMM2ajZANDa8nrGIWrhEx5 UBhkb6tXLJvQVFj7yEmoXRapfOII3LwYhWPJgZNwDMrrHTUKTBZBthYgSzmHaKUagOld xY09wYOFp3S2oUmbjiKL7sH7p3xQ+XEyo170I1uchiuJuHbn3Xuzz9bQwNTWzF24/oR4 lOkxATnf9GH3FIPnZHHdRNX3EXQ8+3DECXuWpnrp0g7M9d5rBYtnJ/ul6LTv4BdNH3vM RQdXueeWO6YJFc86jBpTON7dXHojrRNTueY3WJQzUV1zWZ+ygYfyKS9a4xui8PHZ2N0k iZrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:content-transfer-encoding; bh=W4aIv1jk6zbeqdlp6pN8UDtPKILT9gkE9j6nBclq2+E=; b=EQXv75MFj+TYB6xRaf2aWO8LB8n+Hpo6viUrWJE54L8MLafk+7r2bGZK8BlCvctcRx oI+ZixlqdWbDK16YpLhhCT0uj7ud4iyjzavZAPqbYGPqzKA0NKertGNY+QJPpkUt7dTD MyUldPZxojscKl/dKwenQYpsvPldJgV2hW3UgYm5PdLk3On7EO76gWkcIFBtoTiSVfkM VegtE7M78doAbHInkt+EntfDjQUPR3kGi33Cy44mS/w/rfzA1cM2hWDTVisvTuK/pxgl vRIrKJQg3mK2CcFda5AoA5RzBgoQB/LS+ra4OO+qY7cymJP3CiUfgzaxOCe+5Fuxxnm5 h96g== X-Gm-Message-State: AOAM531meVrhvfrXvF4177tGFOnuRerETsal/GPs/TT74zyP52uWLYyJ axScOhWkXRwWhXXoNSNF1DewGTyc4szpWzCqd1FLDZvE X-Google-Smtp-Source: ABdhPJyfYW3M4qPHnRH8U+G+y9wsNeVhG9AEKYk9YoPvGRMRIdTXyWSLDspBb6/e2154LSFztxTt20uXVXGDs/fczuw= X-Received: by 2002:ac8:4545:: with SMTP id z5mr3436668qtn.28.1608291840818; Fri, 18 Dec 2020 03:44:00 -0800 (PST) MIME-Version: 1.0 References: <20201218112914.GA717@polynum.com> In-Reply-To: From: Eli Cohen Date: Fri, 18 Dec 2020 03:43:49 -0800 Message-ID: To: 9front@9front.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: virtualized SQL over XML session rails Subject: Re: [9front] strndup should use strnlen and memcpy Reply-To: 9front@9front.org Precedence: bulk I know on the order of nothing, but I vote in favor of strnlen ...? On Fri, Dec 18, 2020 at 3:39 AM Sigrid Solveig Hafl=C3=ADnud=C3=B3ttir wrote: > > Well, I can't see where it says anything about strings having to be > null-terminated when calling strdup either, so who knows? :) >