Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > by-pkgid > e899c5a725e7c9630a994ea360c8b111 > files > 1

libbeagle-0.3.9-3mdv2010.1.src.rpm

--- beagle/beagle-request.c~	2008-12-26 17:08:37.000000000 +0100
+++ beagle/beagle-request.c	2008-12-26 17:10:43.000000000 +0100
@@ -206,7 +206,7 @@
 
 	bzero (&sun, sizeof (sun));
 	sun.sun_family = AF_UNIX;
-	snprintf (sun.sun_path, sizeof (sun.sun_path), path);
+	snprintf (sun.sun_path, sizeof (sun.sun_path), "%s", path);
 
 	/* We retry on EGAIN or EINTR: since both of these mean the socket is active,
 	 * there is no harm in trying to retry a lot of times. A blocking socket would