svn commit: samba r14336 - in branches/SAMBA_3_0/source/smbd: .
jra at samba.org
jra at samba.org
Mon Mar 13 18:56:26 GMT 2006
Author: jra
Date: 2006-03-13 18:56:26 +0000 (Mon, 13 Mar 2006)
New Revision: 14336
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=14336
Log:
Try and quieten coverity #53 and #54. Make it obvious
we're using -1 as a special size_t case by casting.
Jeremy.
Modified:
branches/SAMBA_3_0/source/smbd/msdfs.c
Changeset:
Modified: branches/SAMBA_3_0/source/smbd/msdfs.c
===================================================================
--- branches/SAMBA_3_0/source/smbd/msdfs.c 2006-03-13 18:54:33 UTC (rev 14335)
+++ branches/SAMBA_3_0/source/smbd/msdfs.c 2006-03-13 18:56:26 UTC (rev 14336)
@@ -680,7 +680,7 @@
SSVAL(pdata,offset+18,uni_reqpathoffset2-offset);
/* copy referred path into current offset */
unilen = rpcstr_push(pdata+uni_curroffset, ref->alternate_path,
- -1, STR_UNICODE);
+ (size_t)-1, STR_UNICODE);
SSVAL(pdata,offset+20,uni_curroffset-offset);
@@ -709,7 +709,7 @@
DEBUG(10,("setting up version3 referral\n"));
- reqpathlen = rpcstr_push(uni_reqpath, pathname, -1, STR_TERMINATE);
+ reqpathlen = rpcstr_push(uni_reqpath, pathname, (size_t)-1, STR_TERMINATE);
if (DEBUGLVL(10)) {
dump_data(0, (char *) uni_reqpath,reqpathlen);
More information about the samba-cvs
mailing list