Please sign in to comment.
subsys/fs/shell: avoid warning about output format truncation
The previous way of creating an absolute path relied on snprintf(), and when used with newlib gcc warned that the output could be truncated before the last format character. Rework to use code that doesn't rely on snprintf. See discussion at https://bugzilla.redhat.com/show_bug.cgi?id=1431678 Also ensure that cwd is always NUL-terminated, and use the utility function to create the absolute path in cmd_trunc. Signed-off-by: Peter A. Bigot <email@example.com>
- Loading branch information...