Canna: incorrect strlen calculation (CID 602178).

This commit is contained in:
Philippe Saint-Pierre 2012-11-26 20:03:50 -05:00
parent a8fe6dad7e
commit 6fc6cc0c57

View File

@ -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;