]> granicus.if.org Git - strace/commitdiff
2005-03-01 Roland McGrath <roland@redhat.com>
authorRoland McGrath <roland@redhat.com>
Tue, 1 Mar 2005 23:02:32 +0000 (23:02 +0000)
committerRoland McGrath <roland@redhat.com>
Tue, 1 Mar 2005 23:02:32 +0000 (23:02 +0000)
* file.c (print_xattr_val): Add a cast.

file.c

diff --git a/file.c b/file.c
index 0879f863bca369a9259a7183dbab528148478382..c8f7b87812ac84a358b7b883dfb63ae553c8f2b3 100644 (file)
--- a/file.c
+++ b/file.c
@@ -2358,7 +2358,7 @@ long insize, size;
     if (!failed) {
        unsigned char *buf = malloc(4 * size + 1);
        if (buf == NULL || /* probably a bogus size argument */
-           umoven(tcp, arg, size, &buf[3 * size]) < 0) {
+           umoven(tcp, arg, size, (char *) &buf[3 * size]) < 0) {
            failed = 1;
        }
        else {