aboutsummaryrefslogtreecommitdiffstats
path: root/src/hci/commands/nvo_cmd.c
diff options
context:
space:
mode:
authorMichael Brown <mcb30@etherboot.org>2008-03-18 00:48:23 +0000
committerMichael Brown <mcb30@etherboot.org>2008-03-18 00:48:23 +0000
commit5a08b434c7ddecb9cab0f8aedd9db679ca35395c (patch)
tree661b193f21aeaf89aafaf8d92d28ae39444f85aa /src/hci/commands/nvo_cmd.c
parent08b19abf94dacc85db18e75b91f29adcb7a33e93 (diff)
downloadipxe-5a08b434c7ddecb9cab0f8aedd9db679ca35395c.tar.gz
[Settings] show_setting() functions return snprintf()-style length.
show_setting() and related functions now return an "actual length" in the style of snprintf(). This is to allow consumers to allocate buffers large enough to hold the formatted setting.
Diffstat (limited to 'src/hci/commands/nvo_cmd.c')
-rw-r--r--src/hci/commands/nvo_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hci/commands/nvo_cmd.c b/src/hci/commands/nvo_cmd.c
index 4392787b0..4c453c77f 100644
--- a/src/hci/commands/nvo_cmd.c
+++ b/src/hci/commands/nvo_cmd.c
@@ -28,7 +28,7 @@ static int show_exec ( int argc, char **argv ) {
dummy_context.options = ugly_nvo_hack->options;
if ( ( rc = show_named_setting ( &dummy_context, argv[1], buf,
- sizeof ( buf ) ) ) != 0 ) {
+ sizeof ( buf ) ) ) < 0 ) {
printf ( "Could not find \"%s\": %s\n",
argv[1], strerror ( -rc ) );
return 1;