[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20191121022452.GF18325@lunn.ch>
Date: Thu, 21 Nov 2019 03:24:52 +0100
From: Andrew Lunn <andrew@...n.ch>
To: Russell King <rmk+kernel@...linux.org.uk>
Cc: Florian Fainelli <f.fainelli@...il.com>,
Heiner Kallweit <hkallweit1@...il.com>,
"David S. Miller" <davem@...emloft.net>, netdev@...r.kernel.org
Subject: Re: [PATCH net-next 1/2] net: sfp: add support for module quirks
> +static size_t sfp_strlen(const char *str, size_t maxlen)
> +{
> + size_t size, i;
> +
> + /* Trailing characters should be filled with space chars */
> + for (i = 0, size = 0; i < maxlen; i++)
> + if (str[i] != ' ')
> + size = i + 1;
Hi Russell
Is this space padding part of the standard? What's the bet there are
some with a NULL character?
Reviewed-by: Andrew Lunn <andrew@...n.ch>
Andrew
Powered by blists - more mailing lists