diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2010-02-01 10:57:43 -0500 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-02-03 10:35:17 -0500 |
commit | 1151bcff3fd6f16d4fe3ca216e3957c1420d7b54 (patch) | |
tree | a8fe1f1d16792b0a6b1e8ceda481060ffc7148d3 /common | |
parent | b344ede07b51be4f4dcc44c1402eed0ccacc7d6d (diff) | |
download | sssd-1151bcff3fd6f16d4fe3ca216e3957c1420d7b54.tar.gz sssd-1151bcff3fd6f16d4fe3ca216e3957c1420d7b54.tar.xz sssd-1151bcff3fd6f16d4fe3ca216e3957c1420d7b54.zip |
Fix array index error
The null-terminator would have been written one byte past the end
of the array (and there may have been an extra garbage character
in the index before it)
Diffstat (limited to 'common')
-rw-r--r-- | common/ini/ini_config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/ini/ini_config.c b/common/ini/ini_config.c index 67af11bfd..f9461a74e 100644 --- a/common/ini/ini_config.c +++ b/common/ini/ini_config.c @@ -1610,7 +1610,7 @@ static char **get_str_cfg_array(struct collection_item *item, } else { strncpy(locsep, sep, 3); - locsep[4] = '\0'; + locsep[3] = '\0'; lensep = strlen(locsep) + 1; } |