Fixed truncating the last char while writing to filename attribute

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1889 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2010-07-29 11:16:29 +00:00
parent 2d9343958b
commit f16f6864e5
+2 -2
View File
@@ -3610,8 +3610,8 @@ static int vcdrom_change(struct scst_vdisk_dev *virt_dev,
p++;
filename = p;
p = &i_buf[length-1];
pp = p;
while (isspace(*p) && *p != '\0') {
pp = &i_buf[length];
while (isspace(*p) && (*p != '\0')) {
pp = p;
p--;
}