Fix final LEN calculation (again).
authorroland <roland>
Sat, 3 Sep 1994 04:26:11 +0000 (04:26 +0000)
committerroland <roland>
Sat, 3 Sep 1994 04:26:11 +0000 (04:26 +0000)
sysdeps/mach/hurd/mknod.c

index 4690936..6431c17 100644 (file)
@@ -80,7 +80,7 @@ DEFUN(__mknod, (file_name, mode, dev),
       bp = _itoa (major (dev), bp, 10, 0);
       memcpy (bp - len, translator, len);
       translator = bp - len;
-      len = bp + len - translator;
+      len = buf + sizeof (buf) - translator;
     }
   
   dir = __file_name_split (file_name, &name);