]> Dogcows Code - chaz/tar/commitdiff
Silent a cc warning
authorSergey Poznyakoff <gray@gnu.org>
Wed, 17 Dec 2014 06:37:14 +0000 (08:37 +0200)
committerSergey Poznyakoff <gray@gnu.org>
Wed, 17 Dec 2014 06:37:14 +0000 (08:37 +0200)
* src/xheader.c (xheader_string_end): Make sure pointer
arithmetics applies on char*.

src/xheader.c

index b7a54a66fb40b1329f7c23aaf4b40cdd4837a417..a5452a1be63344d120b62e9f0c958c3755b7ee24 100644 (file)
@@ -1027,7 +1027,7 @@ xheader_string_end (struct xheader *xhdr, char const *keyword)
     }
   x_obstack_blank (xhdr, p);
   x_obstack_1grow (xhdr, '\n');
-  cp = obstack_next_free (xhdr->stk) - xhdr->string_length - p - 1;
+  cp = (char*) obstack_next_free (xhdr->stk) - xhdr->string_length - p - 1;
   memmove (cp + p, cp, xhdr->string_length);
   cp = stpcpy (cp, np);
   *cp++ = ' ';
This page took 0.020202 seconds and 4 git commands to generate.