patch-2.1.122 linux/fs/umsdos/mangle.c
Next file: linux/fs/umsdos/namei.c
Previous file: linux/fs/umsdos/ioctl.c
Back to the patch index
Back to the overall index
-  Lines: 8
-  Date:
Mon Sep 14 17:22:25 1998
-  Orig file: 
v2.1.121/linux/fs/umsdos/mangle.c
-  Orig date: 
Wed Sep  9 14:51:09 1998
diff -u --recursive --new-file v2.1.121/linux/fs/umsdos/mangle.c linux/fs/umsdos/mangle.c
@@ -411,6 +411,7 @@
 		/* Why not use info->fake.len everywhere? Is it longer?
                  */
 		memcpy (info->entry.name, fname, len);
+		info->entry.name[len] = '\0';	/* for printk */
 		info->entry.name_len = len;
 		ret = 0;
 	}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov