From owner-svn-src-all@freebsd.org Fri Apr 5 20:06:19 2019 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A1C8B155CFA6; Fri, 5 Apr 2019 20:06:19 +0000 (UTC) (envelope-from delphij@gmail.com) Received: from mail-it1-x129.google.com (mail-it1-x129.google.com [IPv6:2607:f8b0:4864:20::129]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3E6AB72C2D; Fri, 5 Apr 2019 20:06:19 +0000 (UTC) (envelope-from delphij@gmail.com) Received: by mail-it1-x129.google.com with SMTP id q14so11505852itk.0; Fri, 05 Apr 2019 13:06:19 -0700 (PDT) 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 :cc; bh=uVkhr0q0Ql1cCGUzR1hxmUjSkmORLJ/zouB2OIthj7E=; b=of2W315CNXoDMSHNBbhGK9KBtbjPajuSxoga+BbuBnC3KPK4eQgiMIM9r4KFyG8CWd M+QJIpCLq1N89d0HJGLfw1YgQ6Qfp+XxSrrtN5pSty8fpKvsaggta8QA1ksbWRWwrtmN Igij2NknxVsAV2trBVy6VUZG2HNLbZKASy/6B6zYebL2vTknKA8je4FGnCHSy/DLdy+2 +Rzyka91e9Wo1pHifh3i15UDZqPPsUXqs8sNiM2UjvkMg/gVgMO+13K3Y25lPcLOodQ7 fS1NwueM9NMGMRbZYzkgGOfsi42j8FY3yFCYov0Z9vR1JFUILX/6W7eO7HiAFaTFA4vO sFXQ== 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:cc; bh=uVkhr0q0Ql1cCGUzR1hxmUjSkmORLJ/zouB2OIthj7E=; b=tdXNs3C3X6gRNaQFuOWS0f2PZ+G3BS9K61xb+eRPxp9lJSpr8blWVde5cgzQtxmGTB mGKjqRPBovatgIfcpzUx3Z9dKjE9bmA15GMebdLwB6cU28kHJvY6LI9Th+tQFF28j4+w NkiqtK6sKwiZt6tO0tmRIKuBA9/q1dRP/uh+/V3g6pTrrfH6M5pA6WROdPgRlH2/kh0l a+rOnuAa+/Zfjnm/tbKjGMIjSqDxpUKfyvIAYLn21kvCh0x2UUuyOqGje1Y7tcAqjIsP rjwN69FVf2AJp9lvreNMLrPm000JhGwuq7odPTOx3xkC1G4w0B4H1LU/L18Z5ggpN3ip UAjg== X-Gm-Message-State: APjAAAVNiAm/Vqzd0aVf7Gmw5iBjiD6mixynHRBbUJKFO8Q/XvS71UbT lVfjCU/5sXSPcpeCdgRqt1IlCvC9dhcKs1uCUwc= X-Google-Smtp-Source: APXvYqxrnOC5983UuUp+bolQIW6HDnLvdcwgwVfdHa6s7pwlth0ilor+vWyiDAJGT7hMtESPbYEeIjRL4bXINbRpfXg= X-Received: by 2002:a02:1384:: with SMTP id 126mr11750524jaz.72.1554494778370; Fri, 05 Apr 2019 13:06:18 -0700 (PDT) MIME-Version: 1.0 References: <201904050221.x352LGjU015040@repo.freebsd.org> <201904050449.x354nUEC036896@gndrsh.dnsmgr.net> In-Reply-To: From: Xin LI Date: Fri, 5 Apr 2019 13:06:07 -0700 Message-ID: Subject: Re: svn commit: r345900 - head/sbin/fsck_msdosfs To: Hans Petter Selasky Cc: Conrad Meyer , Ed Maste , Xin LI , src-committers , svn-src-all , svn-src-head X-Rspamd-Queue-Id: 3E6AB72C2D X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-6.95 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.95)[-0.953,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; REPLY(-4.00)[] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Apr 2019 20:06:19 -0000 On Fri, Apr 5, 2019 at 12:56 PM Hans Petter Selasky wrote: > On 4/5/19 9:51 PM, Conrad Meyer wrote: > > static const u_char dot_name[11] = ". "; > > static const u_char dotdot_name[11] = ".. "; > > > > Seems more clear to me. > > Using this syntax will include a terminating zero. > No, that only applies when the length is omitted (char foo[] = "string" would have \0, but foo[sizeof("string") -1] = "string" won't). Cheers, > > --HPS >