svn commit: r348007 - projects/fuse2/lib/libc/gen

Enji Cooper yaneurabeya at gmail.com
Mon May 20 20:46:52 UTC 2019


> On May 20, 2019, at 1:22 PM, Konstantin Belousov <kostikbel at gmail.com> wrote:
> 
> On Mon, May 20, 2019 at 07:36:36PM +0000, Alan Somers wrote:

>> +
>> +	return (strncmp(fsname, fusefs_dot, strlen(fusefs_dot)) == 0 &&
> strlen() is not needed, you can use sizeof() - 1.

	This only works with single-byte char arrays. strlen is better (at least easier to spot and replace) when working with multibyte strings.
Thank you,
-Enji


More information about the svn-src-projects mailing list