Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 51ea01e in mainline


Ignore:
Timestamp:
2009-12-05T16:35:06Z (11 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
2a5af223
Parents:
371a012
Message:

Fix off-by-one buffer overflow.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bdsh/input.c

    r371a012 r51ea01e  
    5555typedef struct {
    5656        /** Buffer holding text currently being edited */
    57         wchar_t buffer[INPUT_MAX];
     57        wchar_t buffer[INPUT_MAX + 1];
    5858        /** Screen coordinates of the top-left corner of the text field */
    5959        int col0, row0;
Note: See TracChangeset for help on using the changeset viewer.