mirror of
https://github.com/powerline/powerline.git
synced 2025-07-26 15:25:06 +02:00
Write zero after writing current working directory in powerline.c
This commit is contained in:
parent
310af9ae75
commit
6f550fce8b
@ -106,8 +106,10 @@ int main(int argc, char *argv[]) {
|
|||||||
wd = getcwd(NULL, 0);
|
wd = getcwd(NULL, 0);
|
||||||
if (wd != NULL) {
|
if (wd != NULL) {
|
||||||
do_write(sd, wd, strlen(wd));
|
do_write(sd, wd, strlen(wd));
|
||||||
free(wd); wd = NULL;
|
free(wd);
|
||||||
|
wd = NULL;
|
||||||
}
|
}
|
||||||
|
do_write(sd, eof, 1);
|
||||||
|
|
||||||
for(envp=environ; *envp; envp++) {
|
for(envp=environ; *envp; envp++) {
|
||||||
do_write(sd, *envp, strlen(*envp));
|
do_write(sd, *envp, strlen(*envp));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user