[lkml]   [2010]   [Nov]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] Repalce strncmp by memcmp
Pavel Vasilyev <> writes:

> This patch replace all strncmp(a, b, c) by memcmp(a, b, c).

Those two calls are not equivalent. Think what happens when a or b
are shorter than n and one of them is at the end of a page
before a memory hole.


-- -- Speaking for myself only.

 \ /
  Last update: 2010-11-29 11:21    [W:0.058 / U:2.068 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site