Browse Source

2003-10-13 Jay Fenlason <fenlason@redhat.com>

	* ospf6d/ospf6_route.c: Fix 2 compile warnings.
paul 19 years ago
parent
commit
cccf8af896
1 changed files with 8 additions and 2 deletions
  1. 8 2
      ospf6d/ospf6_route.c

+ 8 - 2
ospf6d/ospf6_route.c

@@ -666,7 +666,10 @@ ospf6_route_remove (struct ospf6_route_req *request,
             for (c = s; c < e; c++)
               {
                 if ((c - s) % 4 == 0)
-                  snprintf (p++, line + sizeof (line) - p, " ");
+		{
+                  snprintf (p, line + sizeof (line) - p, " ");
+		  p++;
+		}
                 snprintf (p, line + sizeof (line) - p, "%02x", *c);
                 p += 2;
               }
@@ -678,7 +681,10 @@ ospf6_route_remove (struct ospf6_route_req *request,
             for (c = s; c < e; c++)
               {
                 if ((c - s) % 4 == 0)
-                  snprintf (p++, line + sizeof (line) - p, " ");
+		{
+                  snprintf (p, line + sizeof (line) - p, " ");
+		  p++;
+		}
                 snprintf (p, line + sizeof (line) - p, "%02x", *c);
                 p += 2;
               }