[lkml]   [2005]   [Feb]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [TTY] 2 points seems strange to me.
    On Fri, 18 Feb 2005, Paul Fulghum wrote:

    > Paulo Marques wrote:
    >> Paul Fulghum wrote:
    >>> No, it limits the size to 80 bytes,
    >>> which is the size of buf.
    >>> sizeof returns the size of the char array buf[80]
    >>> (standard C)
    >> Looking at the code, I think Franck is right. buf is a "const unsigned char
    >> *" for which sizeof(buf) is the size of a pointer.
    > What kernel version are you looking at?
    > I'm looking at 2.4.20 n_tty.c opost_block() and
    > buf is a char array.
    > --
    > Paul Fulghum
    > Microgate Systems, Ltd.

    Ahaa! That's how the bug got introduced. It used to be an
    array and then it got changed to a pointer! linux-2.4.26
    also shows a local array.

    Dick Johnson
    Penguin : Linux version 2.6.10 on an i686 machine (5537.79 BogoMips).
    Notice : All mail here is now cached for review by Dictator Bush.
    98.36% of all statistics are fiction.
    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 14:10    [W:0.025 / U:17.108 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site