瀏覽代碼

Terminate string only once

master
Arun Prakash Jana 5 年之前
父節點
當前提交
6d9f4b3710
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: A75979F35C080412
共有 1 個檔案被更改,包括 4 行新增4 行删除
  1. +4
    -4
      src/nnn.c

+ 4
- 4
src/nnn.c 查看文件

@@ -1884,10 +1884,10 @@ static char *unescape(const char *str, uint maxcols)

if (maxcols) {
len = lencount = wcswidth(wbuf, len);
while (len > maxcols) {
wbuf[--lencount] = L'\0';
len = wcswidth(wbuf, lencount);
}
while (len > maxcols)
len = wcswidth(wbuf, --lencount);
wbuf[lencount] = L'\0';
}

while (*buf) {


Loading…
取消
儲存