svn commit: samba r8246 - in branches/SAMBA_4_0/source/libnet: .
abartlet at samba.org
abartlet at samba.org
Sat Jul 9 01:53:46 GMT 2005
Author: abartlet
Date: 2005-07-09 01:53:45 +0000 (Sat, 09 Jul 2005)
New Revision: 8246
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=8246
Log:
Don't try and set the element after the end off the array to NULL.
Andrew Bartlett
Modified:
branches/SAMBA_4_0/source/libnet/libnet.c
Changeset:
Modified: branches/SAMBA_4_0/source/libnet/libnet.c
===================================================================
--- branches/SAMBA_4_0/source/libnet/libnet.c 2005-07-09 01:53:01 UTC (rev 8245)
+++ branches/SAMBA_4_0/source/libnet/libnet.c 2005-07-09 01:53:45 UTC (rev 8246)
@@ -54,7 +54,7 @@
for (nr_i = 0; nr_i < nr_count; nr_i++) {
ctx->name_res_methods[nr_i] = talloc_strdup(ctx, nr_methods[nr_i]);
}
- ctx->name_res_methods[nr_count+1] = NULL;
+ ctx->name_res_methods[nr_i] = NULL;
return ctx;
}
More information about the samba-cvs
mailing list