[lkml]   [2003]   [Apr]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [TRIVIAL] kstrdup
    Linus Torvalds wrote:
    > On Fri, 18 Apr 2003, Jeff Garzik wrote:
    >>You should save the strlen result to a temp var, and then s/strcpy/memcpy/
    > No, you should just not do this. I don't see the point.

    strcpy has a test for each byte of its contents, and memcpy doesn't.
    Why search 's' for NULL twice?


    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:34    [W:0.019 / U:100.708 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site