Changeset 8bca4fc in rtems


Ignore:
Timestamp:
Nov 30, 2009, 1:24:59 PM (9 years ago)
Author:
Thomas Doerfler <Thomas.Doerfler@…>
Branches:
4.10, 4.11, master
Children:
524ff1cf
Parents:
42836e3
Message:

Added format string to fprintf().

Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r42836e3 r8bca4fc  
    3434        * libcsupport/src/termios.c: Obtain output semaphore before drain
    3535        output during close to prevent an infinite output drain loop.
     36
     372009-11-30      Sebastian Huber <sebastian.huber@embedded-brains.de>
     38
     39        * libmisc/shell/shell.c: Added format string to fprintf().
    3640
    37412009-11-30      Sebastian Huber <sebastian.huber@embedded-brains.de>
  • cpukit/libmisc/shell/shell.c

    r42836e3 r8bca4fc  
    163163        case RTEMS_SHELL_KEYS_END:
    164164          if (output)
    165             fprintf(out,line + col);
     165            fprintf(out, "%s", line + col);
    166166          col = (int) strlen (line);
    167167          break;
     
    279279        case 5:/*Control-e*/
    280280          if (output)
    281             fprintf(out,line + col);
     281            fprintf(out, "%s", line + col);
    282282          col = (int) strlen (line);
    283283          break;
     
    365365                line[ch] = line[ch - 1];
    366366              if (output) {
    367                 fprintf(out, line + col);
     367                fprintf(out, "%s", line + col);
    368368                for (bs = 0; bs < (end - col + 1); bs++)
    369369                  fputc('\b', out);
Note: See TracChangeset for help on using the changeset viewer.