patch-2.3.99-pre3 linux/fs/udf/unicode.c
Next file: linux/fs/ufs/inode.c
Previous file: linux/fs/udf/udfdecl.h
Back to the patch index
Back to the overall index
- Lines: 10
- Date:
Mon Mar 20 08:17:43 2000
- Orig file:
v2.3.99-pre2/linux/fs/udf/unicode.c
- Orig date:
Thu Mar 2 14:36:23 2000
diff -u --recursive --new-file v2.3.99-pre2/linux/fs/udf/unicode.c linux/fs/udf/unicode.c
@@ -177,7 +177,8 @@
return 0;
}
- for (i = 0; (i < ocu_len) && (utf_o->u_len < UDF_NAME_LEN) ;) {
+ for (i = 0; (i < ocu_len) && (utf_o->u_len <= (UDF_NAME_LEN-3)) ;)
+ {
/* Expand OSTA compressed Unicode to Unicode */
c = ocu[i++];
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)