Fixed copying of the translator name into buffer with major and minor
authorroland <roland>
Sat, 3 Sep 1994 02:28:04 +0000 (02:28 +0000)
committerroland <roland>
Sat, 3 Sep 1994 02:28:04 +0000 (02:28 +0000)
numbers, and setting of LEN.

sysdeps/mach/hurd/mknod.c

index e55c12c..4690936 100644 (file)
@@ -78,10 +78,9 @@ DEFUN(__mknod, (file_name, mode, dev),
       bp = _itoa (minor (dev), bp, 10, 0);
       *--bp = '\0';
       bp = _itoa (major (dev), bp, 10, 0);
-      *--bp = '\0';
       memcpy (bp - len, translator, len);
-      translator = buf;
-      len += buf + sizeof (buf) - bp;
+      translator = bp - len;
+      len = bp + len - translator;
     }
   
   dir = __file_name_split (file_name, &name);