lkml.org 
[lkml]   [2003]   [May]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: Resend [PATCH] Make KOBJ_NAME_LEN match BUS_ID_SIZE
    From
    Date
    Linus Torvalds <torvalds@transmeta.com> writes:

    > How about just adding a sane
    > int copy_string(char *dest, const char *src, int len)
    [...]

    If you're going to do this, it might make sense to call it "strlcpy"
    for consistency with the OpenBSD-introduced function of the same name
    that's getting included in a lot of userspace these days...

    <http://www.courtesan.com/todd/papers/strlcpy.html>

    --
    Adam Sampson <azz@us-lot.org> <http://azz.us-lot.org/>
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

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