Ignore:
Timestamp:
Jun 21, 2010, 4:25:09 PM (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 5, master
Children:
ad37630
Parents:
167c6ce
Message:

2010-06-21 Joel Sherrill <joel.sherrilL@…>

PR 1559/misc
Coverity Id 16

  • libmisc/monitor/mon-editor.c: Fix buffer overflow.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libmisc/monitor/mon-editor.c

    r167c6ce r0b95fb8  
    429429              {
    430430                int ch, bs;
    431                 for (ch = end + 1; ch > pos; ch--)
     431                for (ch = end; ch > pos; ch--)
    432432                  buffer[ch] = buffer[ch - 1];
    433433                fprintf(stdout,buffer + pos);
Note: See TracChangeset for help on using the changeset viewer.