applied patch from jonb to use calloc instead of malloc (allocating fribidi buffer)
This commit is contained in:
parent
235244a1c0
commit
ef42640476
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ namespace mapnik {
|
|||
FriBidiStrIndex new_len;
|
||||
fribidi_boolean log2vis;
|
||||
|
||||
visual = (FriBidiChar *) malloc (sizeof (FriBidiChar) * (len + 1));
|
||||
visual = (FriBidiChar *) calloc (sizeof (FriBidiChar), len + 1);
|
||||
ltov = 0;
|
||||
vtol = 0;
|
||||
levels = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue