basic/env-util: when serializing, actually use escaping

Fixes #6152.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2017-06-23 20:27:12 -04:00
parent d233c99ac8
commit 417eefb170

View File

@@ -779,7 +779,7 @@ int serialize_environment(FILE *f, char **environment) {
if (!ce)
return -ENOMEM;
fprintf(f, "env=%s\n", *e);
fprintf(f, "env=%s\n", ce);
}
/* caller should call ferror() */