svn commit: samba r7849 - in branches/SAMBA_3_0/source/utils: .

jra at samba.org jra at samba.org
Thu Jun 23 22:20:38 GMT 2005


Author: jra
Date: 2005-06-23 22:20:37 +0000 (Thu, 23 Jun 2005)
New Revision: 7849

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=7849

Log:
Dodgy fix - we shouldn't be assuming argc++ points to a valid argv.
Jeremy.

Modified:
   branches/SAMBA_3_0/source/utils/net_rpc.c


Changeset:
Modified: branches/SAMBA_3_0/source/utils/net_rpc.c
===================================================================
--- branches/SAMBA_3_0/source/utils/net_rpc.c	2005-06-23 22:20:34 UTC (rev 7848)
+++ branches/SAMBA_3_0/source/utils/net_rpc.c	2005-06-23 22:20:37 UTC (rev 7849)
@@ -3374,6 +3374,7 @@
 
 	char mode = NET_MODE_SHARE_MIGRATE;
 	argv[argc++] = &mode;
+	argv[argc] = NULL;
 
 	return net_run_function(argc, argv, func, rpc_share_usage);
 }



More information about the samba-cvs mailing list