Ticket #1935 (closed defect: fixed)
Incorrect lock files check when hostname contains wide characters
Reported by: | q0tw4 | Owned by: | andrew_b |
---|---|---|---|
Priority: | minor | Milestone: | 4.7.1 |
Component: | mcedit | Version: | master |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Branch state: | Votes for changeset: | committed-master committed-stable |
Description
Function lock_extract_info in file editlock.c uses number of unicode characters as number of bytes in string. I suggest to replace str_term_width1 at lines number 125 and 138 by strlen.
Change History
comment:2 in reply to: ↑ description Changed 15 years ago by andrew_b
- Version set to master
- Milestone set to 4.7.1
Replying to q0tw4:
Function lock_extract_info in file editlock.c uses number of unicode characters as number of bytes in string. I suggest to replace str_term_width1 at lines number 125 and 138 by strlen.
Yes, I agree. Also some optimization is required: no need to calculate string length twice.
comment:3 Changed 15 years ago by andrew_b
- severity changed from no branch to on review
Created 1935_edit_lock_fix branch. Parent branch is master.
changeset:67c37f1d10aa12588953b41e2e070be5532e9cc1
comment:4 Changed 15 years ago by andrew_b
- Owner set to andrew_b
- Status changed from new to accepted
comment:7 Changed 15 years ago by angel_il
- Votes for changeset changed from slavazanko to slavazanko angel_il
- severity changed from on review to approved
comment:8 Changed 15 years ago by andrew_b
- Status changed from accepted to testing
- Votes for changeset changed from slavazanko angel_il to commited-master
- Resolution set to fixed
- severity changed from approved to merged
Merged to master.
changeset:70a41e4feda816d7a0b75be3217cdec1552928f2
comment:9 Changed 15 years ago by slavazanko
- Status changed from testing to closed
- Votes for changeset changed from commited-master to commited-master commited-stable
in stable: 822bf10ba095e6c8946cf5af132390d3498465a7
Why wouldn't you provide a patch?