Il sito funziona meglio con JavaScript.
Home
Esplora
Aiuto
Accedi
Immanuel
/
nnn
Segui
1
Vota
0
Forka
0
Codice
Problemi
0
Pull Requests
0
Rilasci
0
Wiki
Attività
Sfoglia il codice sorgente
Fix
#290
: terminate g_buf correctly
master
Arun Prakash Jana
6 anni fa
parent
a9392463b0
commit
4d6f304204
Non sono state trovate chiavi note per questa firma nel database
ID Chiave GPG:
A75979F35C080412
1 ha cambiato i file
con
5 aggiunte
e
1 eliminazioni
Visualizzazione separata
Diff Options
Show Stats
Download Patch File
Download Diff File
+5
-1
src/nnn.c
+ 5
- 1
src/nnn.c
Vedi File
@@ -1887,7 +1887,11 @@ END:
clearprompt();
buf[len] = '\0';
wcstombs(g_buf, buf, CMD_LEN_MAX);
pos = wcstombs(g_buf, buf, CMD_LEN_MAX - 1);
if (pos >= CMD_LEN_MAX - 1)
g_buf[CMD_LEN_MAX - 1] = '\0';
free(buf);
return g_buf;
}
Write
Preview
Loading…
Annulla
Salva