Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > afc36582255686a17ff183c05526b9ef > files > 1

libnet-1.1.4-1mdv2009.0.src.rpm

--- src/libnet_init.c	2004-03-16 19:40:59.000000000 +0100
+++ src/libnet_init.c.oden	2008-12-16 16:26:48.000000000 +0100
@@ -85,12 +85,12 @@ libnet_init(int injection_type, char *de
         case LIBNET_LINK_ADV:
             if (libnet_select_device(l) == -1)
             {
-                snprintf(err_buf, LIBNET_ERRBUF_SIZE, l->err_buf);
+                snprintf(err_buf, LIBNET_ERRBUF_SIZE, "%s", l->err_buf);
 		goto bad;
             }
             if (libnet_open_link(l) == -1)
             {
-                snprintf(err_buf, LIBNET_ERRBUF_SIZE, l->err_buf);
+                snprintf(err_buf, LIBNET_ERRBUF_SIZE, "%s", l->err_buf);
                 goto bad;
             }
             break;
@@ -98,7 +98,7 @@ libnet_init(int injection_type, char *de
         case LIBNET_RAW4_ADV:
             if (libnet_open_raw4(l) == -1)
             {
-                snprintf(err_buf, LIBNET_ERRBUF_SIZE, l->err_buf);
+                snprintf(err_buf, LIBNET_ERRBUF_SIZE, "%s", l->err_buf);
                 goto bad;
             }
             break;
@@ -106,7 +106,7 @@ libnet_init(int injection_type, char *de
         case LIBNET_RAW6_ADV:
             if (libnet_open_raw6(l) == -1)
             {
-                snprintf(err_buf, LIBNET_ERRBUF_SIZE, l->err_buf);
+                snprintf(err_buf, LIBNET_ERRBUF_SIZE, "%s", l->err_buf);
                 goto bad;
             }
             break;