aboutsummaryrefslogtreecommitdiffstats
path: root/guts
diff options
context:
space:
mode:
authorPeter Seebach <peter.seebach@windriver.com>2010-08-31 20:51:10 -0500
committerPeter Seebach <peter.seebach@windriver.com>2010-08-31 20:51:10 -0500
commit853dc2e73b1fda93e4b3e2c0641c7ad7a4253936 (patch)
treed17806ebf72988729aec750410fd7269758c44e9 /guts
parentecab857a8a1bd332d6539370c0f183c2b4f004f6 (diff)
downloadpseudo-853dc2e73b1fda93e4b3e2c0641c7ad7a4253936.tar.gz
pseudo-853dc2e73b1fda93e4b3e2c0641c7ad7a4253936.tar.bz2
pseudo-853dc2e73b1fda93e4b3e2c0641c7ad7a4253936.zip
Fix an error message which was mostly-harmless but still clearly a
flaw in the code. Yes, Virginia, your printf arguments must match their format strings, and size_t is not the same thing as int.
Diffstat (limited to 'guts')
-rw-r--r--guts/getcwd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/guts/getcwd.c b/guts/getcwd.c
index 18c4748..2537e94 100644
--- a/guts/getcwd.c
+++ b/guts/getcwd.c
@@ -55,7 +55,7 @@
rc = buf;
pseudo_debug(3, "getcwd: copying %d (%d + 1 - %d) characters from <%s>.\n",
(int) ((pseudo_cwd_len + 1) - pseudo_chroot_len),
- pseudo_cwd_len, pseudo_chroot_len,
+ (int) pseudo_cwd_len, (int) pseudo_chroot_len,
pseudo_cwd_rel);
memcpy(buf, pseudo_cwd_rel, (pseudo_cwd_len + 1) - (pseudo_cwd_rel - pseudo_cwd));
if (!*buf) {