patch-2.2.17 linux/fs/ncpfs/ncplib_kernel.h

Next file: linux/fs/nls/nls_base.c
Previous file: linux/fs/namei.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.16/fs/ncpfs/ncplib_kernel.h linux/fs/ncpfs/ncplib_kernel.h
@@ -130,7 +130,7 @@
 		nc[0] = toupperif(*np, case_trans);
 		nc[1] = 0x00;
 		nls_in->char2uni(nc, &len, &uc.uni2, &uc.uni1);
-		nls_out->uni2char(0x00, uc.uni2, np, 1, &len);
+		nls_out->uni2char(uc.uni1, uc.uni2, np, 1, &len);
 		np++;
 	}
 }
@@ -154,7 +154,7 @@
 		nc[0] = *np;
 		nc[1] = 0;
 		nls_in->char2uni(nc, &len, &uc.uni2, &uc.uni1);
-		nls_out->uni2char(0x00, uc.uni2, nc, 1, &len);
+		nls_out->uni2char(uc.uni1, uc.uni2, nc, 1, &len);
 		*np = tolowerif(nc[0], case_trans);
 		np++;
 	}

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)