Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 276053b2 authored by Andrew Hsieh's avatar Andrew Hsieh
Browse files

Use %zd instead of %d for variables of type ssize_t

To generate correct 64-bit code (with -m64)

Change-Id: I7cd5e0c7e8bdcb9ea3bf73df0dcda55f1cb56eec
parent 3111751d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -137,7 +137,7 @@ static int copyFileContents(const char* dst, int dstFd, const char* src, int src
                return -1;
            }
            if (writeCount != readCount) {
                fprintf(stderr, "acp: partial write to '%s' (%d of %d)\n",
                fprintf(stderr, "acp: partial write to '%s' (%zd of %zd)\n",
                    dst, writeCount, readCount);
                return -1;
            }