ソースを参照

Show stat when file has single quote

master
Arun Prakash Jana 6年前
コミット
379fdf50fa
この署名に対応する既知のキーがデータベースに存在しません GPGキーID: A75979F35C080412
1個のファイルの変更2行の追加2行の削除
  1. +2
    -2
      src/nnn.c

+ 2
- 2
src/nnn.c ファイルの表示

@@ -2440,9 +2440,9 @@ static bool show_stats(const char *fpath, const char *fname, const struct stat *
if (fd == -1)
return FALSE;

r = xstrlcpy(g_buf, "stat \'", PATH_MAX);
r = xstrlcpy(g_buf, "stat \"", PATH_MAX);
r += xstrlcpy(g_buf + r - 1, fpath, PATH_MAX);
g_buf[r - 2] = '\'';
g_buf[r - 2] = '\"';
g_buf[r - 1] = '\0';
DPRINTF_S(g_buf);



読み込み中…
キャンセル
保存