]> granicus.if.org Git - strace/commitdiff
Fix another typo
authorWichert Akkerman <wichert@deephackmode.org>
Sat, 7 Apr 2001 21:41:26 +0000 (21:41 +0000)
committerWichert Akkerman <wichert@deephackmode.org>
Sat, 7 Apr 2001 21:41:26 +0000 (21:41 +0000)
system.c

index 48d06e286fb2b48737c0904dc025492ac596ce16..31768ad027dbd2b045c27b40f908c37bcad5336c 100644 (file)
--- a/system.c
+++ b/system.c
@@ -2034,8 +2034,8 @@ struct tcb *tcp;
                if (!verbose(tcp)) {
                        tprintf("%d, %d, %d", tcp->u_arg[1], tcp->u_arg[2], tcp->u_arg[3]);
                } else if (tcp->u_arg[0]==SETNAME) {
-                       char nodename[__NEW_UTS_LEN_1];
-                       if (umovestr(tcp, tcp->u_arg[1], (__NEW_UTS_LEN_1), nodename) < 0)
+                       char nodename[__NEW_UTS_LEN+1];
+                       if (umovestr(tcp, tcp->u_arg[1], (__NEW_UTS_LEN+1), nodename) < 0)
                                tprintf(", %#lx", tcp->u_arg[1]);
                        else
                                tprintf(", \"%s\"", nodename);