Canna: incorrect strlen calculation (CID 602178).
This commit is contained in:
@@ -1377,7 +1377,7 @@ else if ((mode & (RK_ENABLE_WRITE | RK_DISABLE_WRITE)) == RK_DISABLE_WRITE) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (newflags != dd->dd_flags) {
|
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) {
|
if (dicsdir) {
|
||||||
int filemode;
|
int filemode;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user