Canna: incorrect strlen calculation (CID 602178).
This commit is contained in:
parent
a8fe6dad7e
commit
6fc6cc0c57
@ -1377,7 +1377,7 @@ else if ((mode & (RK_ENABLE_WRITE | RK_DISABLE_WRITE)) == RK_DISABLE_WRITE) {
|
||||
}
|
||||
|
||||
if (newflags != dd->dd_flags) {
|
||||
dicsdir = (char *)malloc(strlen(dd->dd_path + strlen("/dics.dir") + 1));
|
||||
dicsdir = (char *)malloc(strlen(dd->dd_path) + strlen("/dics.dir") + 1);
|
||||
if (dicsdir) {
|
||||
int filemode;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user