diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2005-08-25 22:29:55 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:34:35 -0500 |
commit | c9d3763bfc92b7e99565065fb44b03c47f1f1a0d (patch) | |
tree | 6cf5d04cacdd6235ab0b4b24830ee0622c5bc261 /source4/lib/samba3/winsdb.c | |
parent | 69fb6840637e07318914d632571c8481f3573461 (diff) | |
download | samba-c9d3763bfc92b7e99565065fb44b03c47f1f1a0d.tar.gz samba-c9d3763bfc92b7e99565065fb44b03c47f1f1a0d.tar.bz2 samba-c9d3763bfc92b7e99565065fb44b03c47f1f1a0d.zip |
r9623: samba3dump now generates LDIF for the registry hives from registry.tdb
couple of other small fixes
(This used to be commit 06bc5d8e0950dd85b6f26a1355fa0a2ae178d30f)
Diffstat (limited to 'source4/lib/samba3/winsdb.c')
-rw-r--r-- | source4/lib/samba3/winsdb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/lib/samba3/winsdb.c b/source4/lib/samba3/winsdb.c index c6ead1de39..f543ebd3f0 100644 --- a/source4/lib/samba3/winsdb.c +++ b/source4/lib/samba3/winsdb.c @@ -55,7 +55,7 @@ NTSTATUS samba3_read_winsdb( const char *fn, TALLOC_CTX *ctx, struct samba3_wins /* Read a line from the wins.dat file. Strips whitespace from the beginning and end of the line. */ - line = fgets_slash(NULL,-1,fp); + line = fgets_slash(NULL,8,fp); if (!line) return NT_STATUS_UNSUCCESSFUL; @@ -169,7 +169,7 @@ NTSTATUS samba3_read_winsdb( const char *fn, TALLOC_CTX *ctx, struct samba3_wins entry.ttl = atol(ttl_str); *entries = talloc_realloc(ctx, *entries, struct samba3_winsdb_entry, (*count)+1); - *entries[*count] = entry; + (*entries)[*count] = entry; (*count)++; } |