bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 1/2] Remove name_equals and use strncmp instead


From: Samuel Thibault
Subject: Re: [PATCH 1/2] Remove name_equals and use strncmp instead
Date: Thu, 30 Dec 2021 15:45:36 +0100
User-agent: NeoMutt/20170609 (1.8.3)

Hello,

Etienne Brateau, le jeu. 30 déc. 2021 12:22:48 +0100, a ecrit:
>   * device/dev_name.c: Replace name_equals with strncmp

This is not the same, see:

> - *   next character of target is 0 (end of string).

strncmp doesn't test that. It's important to properly catch prefixes.

Samuel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]