Ignore:
Timestamp:
Jan 21, 2018, 12:10:09 AM (6 years ago)
Author:
coas-nagasima
Message:

prototoolに関連するプロジェクトをnewlibからmuslを使うよう変更・更新
ntshellをnewlibの下位の実装から、muslのsyscallの実装に変更・更新
以下のOSSをアップデート
・mruby-1.3.0
・musl-1.1.18
・onigmo-6.1.3
・tcc-0.9.27
以下のOSSを追加
・openssl-1.1.0e
・curl-7.57.0
・zlib-1.2.11
以下のmrbgemsを追加
・iij/mruby-digest
・iij/mruby-env
・iij/mruby-errno
・iij/mruby-iijson
・iij/mruby-ipaddr
・iij/mruby-mock
・iij/mruby-require
・iij/mruby-tls-openssl

File:
1 edited

Legend:

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

    r321 r331  
    3333#include <string.h>
    3434#include "text_history.h"
     35#include "core/ntlibc.h"
    3536
    3637/**
     
    145146        char *buf, const int siz)
    146147{
    147         const int text_len = strlen((const char *)text);
     148        const int text_len = ntlibc_strlen((const char *)text);
    148149        int found = 0;
    149150        int i;
     
    151152                int target = (p->rp + i) % TEXTHISTORY_DEPTH;
    152153                char *txtp = p->history + (TEXTHISTORY_MAXLEN * target);
    153                 const int target_len = strlen((const char *)txtp);
     154                const int target_len = ntlibc_strlen((const char *)txtp);
    154155                int comp_len = (target_len < text_len) ? target_len : text_len;
    155                 if ((strncmp(
     156                if ((ntlibc_strncmp(
    156157                        (const char *)txtp,
    157158                        (const char *)text, comp_len) == 0) && (comp_len > 0)) {
    158159                        if (found == index) {
    159                                 if (siz <= strlen(txtp)) {
     160                                if (siz <= ntlibc_strlen(txtp)) {
    160161                                        return -1;
    161162                                }
    162                                 strcpy((char *)buf, (char *)txtp);
     163                                ntlibc_strcpy((char *)buf, (char *)txtp);
    163164                                return 0;
    164165                        }
Note: See TracChangeset for help on using the changeset viewer.