Sophie

Sophie

distrib > Mandriva > 2010.2 > i586 > by-pkgid > 1b094cd9ad8182c1a20173783574223f > files > 1

dpkg-1.15.5.6-1mdv2010.1.src.rpm

--- lib/dpkg/lock.c	2010-01-08 09:00:34.000000000 +0100
+++ lib/dpkg/lock.c.oden	2010-04-18 14:01:55.157224718 +0200
@@ -72,8 +72,8 @@ lock_file(int *lockfd, const char *filen
 
   if (fcntl(*lockfd, emsg_eagain ? F_SETLK : F_SETLKW, &fl) == -1) {
     if (emsg_eagain && (errno == EACCES || errno == EAGAIN))
-      ohshit(emsg_eagain);
-    ohshite(emsg);
+      ohshit("%s", emsg_eagain);
+    ohshite("%s", emsg);
   }
 
   push_cleanup(cu_unlock_file, ~0, NULL, 0, 1, lockfd);