mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-18 05:06:31 +00:00
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:
@@ -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--;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user