summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2007-12-29 17:02:27 +0100
committerMichael Adam <obnox@samba.org>2007-12-29 17:02:27 +0100
commita6d6fbb73d56d3b96ccf55c1d028c5af00d83386 (patch)
tree266f5f48d0e0b5ac3218887065b8e48f9c6e4de5 /source3/utils
parente8cb7cecf2dde62f271a37376cefa5179eb7b7bc (diff)
downloadsamba-a6d6fbb73d56d3b96ccf55c1d028c5af00d83386.tar.gz
samba-a6d6fbb73d56d3b96ccf55c1d028c5af00d83386.tar.bz2
samba-a6d6fbb73d56d3b96ccf55c1d028c5af00d83386.zip
Dont return count - 1 but count from libnet_smbconf_reg_get_values().
Michael (This used to be commit ded60dec7d75db7df485a159fb6bf628d8e24805)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net_conf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/utils/net_conf.c b/source3/utils/net_conf.c
index 8791d7cbdd..8957408bd6 100644
--- a/source3/utils/net_conf.c
+++ b/source3/utils/net_conf.c
@@ -541,7 +541,7 @@ static int net_conf_showshare(int argc, const char **argv)
d_printf("[%s]\n", sharename);
- for (count = 0; count <= num_params; count++) {
+ for (count = 0; count < num_params; count++) {
d_printf("\t%s = %s\n", param_names[count],
param_values[count]);
}