Skip to content

Commit

Permalink
Canna: incorrect strlen calculation (CID 602178).
Browse files Browse the repository at this point in the history
  • Loading branch information
stpere committed Nov 27, 2012
1 parent a8fe6da commit 6fc6cc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/add-ons/input_server/methods/canna/rk/dd.c
Expand Up @@ -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;

Expand Down

0 comments on commit 6fc6cc0

Please sign in to comment.