Changeset 92fd52d7 in mainline for uspace/app/bdsh/input.c


Ignore:
Timestamp:
2009-04-09T21:16:50Z (15 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7afb4a5
Parents:
a2c58f6
Message:

Nuke strcpy() and strcmp().

File:
1 edited

Legend:

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

    ra2c58f6 r92fd52d7  
    147147{
    148148        char line[INPUT_MAX];
    149         size_t len = 0;
    150149
    151150        console_set_style(STYLE_EMPHASIS);
     
    154153
    155154        read_line(line, INPUT_MAX);
    156         len = strlen(line);
    157155        /* Make sure we don't have rubbish or a C/R happy user */
    158         if (len == 0 || line[0] == '\n')
     156        if (str_cmp(line, "") == 0 || str_cmp(line, "\n") == 0)
    159157                return;
    160158        usr->line = strdup(line);
Note: See TracChangeset for help on using the changeset viewer.