]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
Cast arg 3 of memset and memcpy to size_t to quiet warnings.
authorTim Rice <tim@multitalents.net>
Fri, 18 Apr 2003 23:16:08 +0000 (23:16 +0000)
committerTim Rice <tim@multitalents.net>
Fri, 18 Apr 2003 23:16:08 +0000 (23:16 +0000)
faxd/CopyQuality.c++

index a2986acd0ad618c6c831468ea244aaa288d8e126..61210e14461c66fb143358ddc0067c3f715e5560 100644 (file)
@@ -124,7 +124,7 @@ FaxModem::recvPageDLEData(TIFF* tif, bool checkQuality,
        recvStartPage(tif);
 
        u_char* curGood = buf;                  // last good row
-       memset(curGood, 0, rowSize);            // initialize to all white
+       memset(curGood, 0, (size_t) rowSize);   // initialize to all white
        recvBuf = NULL;                         // don't need raw data
        lastRowBad = false;                     // no previous row
        cblc = 0;                               // current bad line run
@@ -150,7 +150,8 @@ FaxModem::recvPageDLEData(TIFF* tif, bool checkQuality,
                        cblc = 0;
                    }
                } else {
-                   memcpy(recvRow, curGood, rowSize);// replicate last good
+                   memcpy(recvRow, curGood, (size_t) rowSize);
+                       // replicate last good
                    recvBadLineCount++;
                    cblc++;
                    lastRowBad = true;