]> granicus.if.org Git - strace/blobdiff - readlink.c
Robustify mpers.awk against invalid input
[strace] / readlink.c
index fcb415334c7e93bc0e2acc5c7171fb553a53637e..992976144606b9f3f74592c42fc840c50ddb4d6e 100644 (file)
@@ -8,7 +8,7 @@ decode_readlink(struct tcb *tcp, int offset)
                tprints(", ");
        } else {
                if (syserror(tcp))
-                       tprintf("%#lx", tcp->u_arg[offset + 1]);
+                       printaddr(tcp->u_arg[offset + 1]);
                else
                        /* Used to use printpathn(), but readlink
                         * neither includes NUL in the returned count,