Hanno Boeck <> changed:

           What    |Removed                     |Added
                 CC|                            |

--- Comment #2 from Hanno Boeck <> ---
You're making specific assumptions about the implementation of memcmp, however
there's nothing in the C standard that allows you to make such assumptions. The
comparison could be implemented in any way, e.g. by comparing chunks or
starting the comparison at the end of the buffer.

strncmp does exactly what you want - it ends reading the buffer at the first
zero byte.

You are receiving this mail because:
You are the assignee for the bug.

Reply via email to