patch-2.4.25 linux-2.4.25/fs/ntfs/support.c

Next file: linux-2.4.25/fs/open.c
Previous file: linux-2.4.25/fs/ntfs/fs.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.24/fs/ntfs/support.c linux-2.4.25/fs/ntfs/support.c
@@ -240,7 +240,7 @@
 				NLS_MAX_CHARSET_SIZE)) > 0) {
 			/* Adjust result buffer. */
 			if (chl > 1) {
-				buf = ntfs_malloc(*out_len + chl - 1);
+				buf = ntfs_malloc(*out_len + chl);
 				if (!buf) {
 					i = -ENOMEM;
 					goto err_ret;

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