r10257: strlen returns a size_t which can be 64 bits long.
authorTim Potter <tpot@samba.org>
Fri, 16 Sep 2005 07:19:37 +0000 (07:19 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:38:12 +0000 (13:38 -0500)
(This used to be commit 4a4b0537183e16b00a94f0411e423c943d79cba9)

source4/torture/raw/streams.c

index 4a77dbfc769a121fdf084483db63266051edad4a..2e80c438b09412aa6464fc7b2bddba764357235f 100644 (file)
@@ -76,8 +76,8 @@ static BOOL check_stream(struct smbcli_state *cli, TALLOC_CTX *mem_ctx,
        
        ret = smbcli_read(cli->tree, fnum, buf, 0, strlen(value)+11);
        if (ret != strlen(value)) {
-               printf("Failed to read %d bytes from stream '%s' - got %d\n",
-                      strlen(value), full_name, (int)ret);
+               printf("Failed to read %lu bytes from stream '%s' - got %d\n",
+                      (long)strlen(value), full_name, (int)ret);
                return False;
        }