Changeset fdcf6c11 in rtems


Ignore:
Timestamp:
Feb 3, 2012, 10:05:50 PM (8 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
105c8a50
Parents:
935ae4a
Message:

PR 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

    r935ae4a rfdcf6c11  
    99 *  found in the file LICENSE in this distribution or at
    1010 *  http://www.rtems.com/license/LICENSE.
    11  *
    12  *  $Id$
    1311 */
    1412
     
    5452   */
    5553  n = 0;
    56   for (i=2 ; i<=argc ; i++) {
     54  for (i=2 ; i<argc ; i++) {
    5755    unsigned char tmpc;
    5856
Note: See TracChangeset for help on using the changeset viewer.