freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Devel] Should not use strlen()


From: Chisato Yamauchi
Subject: [Devel] Should not use strlen()
Date: Sun, 18 Apr 2004 18:24:33 +0900 (JST)

  Hi,

  I found 'strlen' in bdf/bdfdrivr.c.
This should be replaced with 'ft_strlen'.

--- xc/extras/freetype2/src/bdf/bdfdrivr.c._orig_       2004-03-22 
18:24:42.000000000 +0900
+++ xc/extras/freetype2/src/bdf/bdfdrivr.c      2004-04-18 18:14:37.000000000 
+0900
@@ -478,10 +478,10 @@
 
 
             if ( FT_NEW_ARRAY( face->charset_encoding,
-                               strlen( charset_encoding->value.atom ) + 1 ) )
+                               ft_strlen( charset_encoding->value.atom ) + 1 ) 
)
               goto Exit;
             if ( FT_NEW_ARRAY( face->charset_registry,
-                               strlen( charset_registry->value.atom ) + 1 ) )
+                               ft_strlen( charset_registry->value.atom ) + 1 ) 
)
               goto Exit;
 
             ft_strcpy( face->charset_registry, charset_registry->value.atom );

  Thanks.

------------------------------------------------------------
    Chisato Yamauchi



reply via email to

[Prev in Thread] Current Thread [Next in Thread]