Ignore:
Timestamp:
Jul 13, 2020, 8:07:55 PM (4 years ago)
Author:
coas-nagasima
Message:

ntshellアプリはnewlibを使うよう変更し、syscallの実装部分と区別がつくよう更新。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • EcnlProtoTool/trunk/ntshell/ntshell/core/text_history.c

    r331 r442  
    146146        char *buf, const int siz)
    147147{
    148         const int text_len = ntlibc_strlen((const char *)text);
     148        const int text_len = strlen((const char *)text);
    149149        int found = 0;
    150150        int i;
     
    152152                int target = (p->rp + i) % TEXTHISTORY_DEPTH;
    153153                char *txtp = p->history + (TEXTHISTORY_MAXLEN * target);
    154                 const int target_len = ntlibc_strlen((const char *)txtp);
     154                const int target_len = strlen((const char *)txtp);
    155155                int comp_len = (target_len < text_len) ? target_len : text_len;
    156                 if ((ntlibc_strncmp(
     156                if ((strncmp(
    157157                        (const char *)txtp,
    158158                        (const char *)text, comp_len) == 0) && (comp_len > 0)) {
    159159                        if (found == index) {
    160                                 if (siz <= ntlibc_strlen(txtp)) {
     160                                if (siz <= strlen(txtp)) {
    161161                                        return -1;
    162162                                }
    163                                 ntlibc_strcpy((char *)buf, (char *)txtp);
     163                                strcpy((char *)buf, (char *)txtp);
    164164                                return 0;
    165165                        }
Note: See TracChangeset for help on using the changeset viewer.