patch-1.3.4 linux/fs/xiafs/symlink.c

Next file: linux/include/asm-alpha/dma.h
Previous file: linux/fs/xiafs/file.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.3/linux/fs/xiafs/symlink.c linux/fs/xiafs/symlink.c
@@ -69,9 +69,9 @@
     if (!bh)
         return 0;
     for (i=0; i < buflen && (c=bh->b_data[i]); i++)
-      put_fs_byte(c, buffer++);
+      put_user(c, buffer++);
     if (i < buflen-1)
-      put_fs_byte((char)0, buffer);
+      put_user('\0', buffer);
     brelse(bh);
     return i;
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this