浏览代码

mbstowcs() returns the codepoints

master
Arun Prakash Jana 7 年前
父节点
当前提交
ccdb95f3ab
找不到此签名对应的密钥 GPG 密钥 ID: A75979F35C080412
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. +2
    -3
      nnn.c

+ 2
- 3
nnn.c 查看文件

@@ -1013,10 +1013,9 @@ xreadline(char *fname)
size_t buflen = NAME_MAX - 1;

DPRINTF_S(fname)
mbstowcs(buf, fname, NAME_MAX);
len = pos = wcslen(buf);
len = pos = mbstowcs(buf, fname, NAME_MAX);
/* For future: handle NULL, say for a new name */
if (len <= 0) {
if (len == (size_t)-1) {
buf[0] = '\0';
len = pos = 0;
}


正在加载...
取消
保存