Avoid formatted output in a few more places where formatting is not
really needed and output could be large enough to be truncated.
diff --git a/programs/wcmd/builtins.c b/programs/wcmd/builtins.c
index 394a9bc..5652089 100644
--- a/programs/wcmd/builtins.c
+++ b/programs/wcmd/builtins.c
@@ -827,7 +827,10 @@
*/
status = GetEnvironmentVariable(s, buffer, sizeof(buffer));
if (status) {
- WCMD_output("%s=%s\n", s, buffer);
+ WCMD_output_asis( s);
+ WCMD_output_asis( "=");
+ WCMD_output_asis( buffer);
+ WCMD_output_asis( "\n");
} else {
WCMD_output ("Environment variable %s not defined\n", s);
}
@@ -856,7 +859,9 @@
if (strlen(param1) == 0) {
status = GetEnvironmentVariable ("PATH", string, sizeof(string));
if (status != 0) {
- WCMD_output ("PATH=%s\n", string);
+ WCMD_output_asis ( "PATH=");
+ WCMD_output_asis ( string);
+ WCMD_output_asis ( "\n");
}
else {
WCMD_output ("PATH not found\n");