aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPer Øyvind Karlsen <peroyvind@mandriva.org>2010-11-09 14:33:08 +0000
committerPer Øyvind Karlsen <peroyvind@mandriva.org>2010-11-09 14:33:08 +0000
commit11c01e6284fd03b3a6d23c61f6eb25fb44ce97eb (patch)
treed399e9590e2260aba2b1e51895ba583da702eb0e
parentf2ffa0fae9dbe03f1745adfac23e6605415efc1c (diff)
downloadperl-URPM-11c01e6284fd03b3a6d23c61f6eb25fb44ce97eb.tar
perl-URPM-11c01e6284fd03b3a6d23c61f6eb25fb44ce97eb.tar.gz
perl-URPM-11c01e6284fd03b3a6d23c61f6eb25fb44ce97eb.tar.bz2
perl-URPM-11c01e6284fd03b3a6d23c61f6eb25fb44ce97eb.tar.xz
perl-URPM-11c01e6284fd03b3a6d23c61f6eb25fb44ce97eb.zip
fix string format usage
-rw-r--r--URPM.xs2
1 files changed, 1 insertions, 1 deletions
diff --git a/URPM.xs b/URPM.xs
index a044dd0..a4ff87e 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -2833,7 +2833,7 @@ Db_open(prefix=NULL, write_perm=0)
size_t len;
if(getcwd(relpath, sizeof(relpath)) == NULL)
- croak(strerror(errno));
+ croak("%s", strerror(errno));
len = strlen(relpath);
snprintf(&(relpath[len]), sizeof(relpath)-len, "/%s", prefix);
rpmtsSetRootDir(db->ts, relpath);