Changeset 750ff768 in rtems


Ignore:
Timestamp:
Feb 3, 2012, 10:21:53 PM (7 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.9
Children:
305567c
Parents:
771a01e4
Message:

2001/shell - medit command argument parsing correction

"medit" overran the argument list, choking on the NULL pointer
following the last argument.

Note that "medit" still only does byte-sized accesses, which limits
its usefulness on most systems.

Author: Werner Almesberger <werner@…>
Signed-off-by: Sebastien Bourdeauducq <sebastien@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libmisc/shell/main_medit.c

    r771a01e4 r750ff768  
    99 *  found in the file LICENSE in this distribution or at
    1010 *  http://www.rtems.com/license/LICENSE.
    11  *
    12  *  $Id$
    1311 */
    1412
     
    4341  i = 2;
    4442  n = 0;
    45   while (i<=argc) {
     43  while (i<argc) {
    4644    pb[n++] = rtems_shell_str2int(argv[i++]) % 0x100;
    4745  }
Note: See TracChangeset for help on using the changeset viewer.