svn commit: samba r17906 - in branches/SAMBA_3_0/source/lib: .

vlendec at samba.org vlendec at samba.org
Tue Aug 29 09:49:10 GMT 2006


Author: vlendec
Date: 2006-08-29 09:49:10 +0000 (Tue, 29 Aug 2006)
New Revision: 17906

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

Log:
Port the snprintf bugfix from 4. I wonder why we never hit this....
Modified:
   branches/SAMBA_3_0/source/lib/snprintf.c


Changeset:
Modified: branches/SAMBA_3_0/source/lib/snprintf.c
===================================================================
--- branches/SAMBA_3_0/source/lib/snprintf.c	2006-08-29 09:46:59 UTC (rev 17905)
+++ branches/SAMBA_3_0/source/lib/snprintf.c	2006-08-29 09:49:10 UTC (rev 17906)
@@ -589,11 +589,11 @@
 			if (cnk->cflags == DP_C_SHORT)
 				cnk->value = va_arg (args, unsigned int);
 			else if (cnk->cflags == DP_C_LONG)
-				cnk->value = (long)va_arg (args, unsigned long int);
+				cnk->value = (unsigned long int)va_arg (args, unsigned long int);
 			else if (cnk->cflags == DP_C_LLONG)
 				cnk->value = (LLONG)va_arg (args, unsigned LLONG);
 			else
-				cnk->value = (long)va_arg (args, unsigned int);
+				cnk->value = (unsigned int)va_arg (args, unsigned int);
 
 			for (i = 1; i < clist[pnum].num; i++) {
 				clist[pnum].chunks[i]->value = cnk->value;



More information about the samba-cvs mailing list