aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);