Skip to content
Browse files

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

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

Change-Id: I7cd5e0c7e8bdcb9ea3bf73df0dcda55f1cb56eec
  • Loading branch information...
1 parent 3111751 commit 276053b291204fc428b75a3c3f66215de41b3c8b Andrew Hsieh committed Feb 27, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 libs/host/CopyFile.c
View
2 libs/host/CopyFile.c
@@ -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;
}

0 comments on commit 276053b

Please sign in to comment.
Something went wrong with that request. Please try again.