< prev index next >
src/java.desktop/unix/native/common/awt/fontpath.c
Print this page
@@ -284,11 +284,11 @@
if ( appendDirList[index] == 1 ) {
/* printf ( "Appending %s\n", fDirP->name[index] ); */
- onePath = SAFE_SIZE_ARRAY_ALLOC(malloc, strlen (fDirP->name[index]) + 2, sizeof( char ) );
+ onePath = SAFE_SIZE_ARRAY_ALLOC(malloc, (int)strlen (fDirP->name[index]) + 2, (int)sizeof( char ) );
if (onePath == NULL) {
free ( ( void *) appendDirList );
for ( index = origIndex; index < nPaths; index++ ) {
free( newFontPath[index] );
< prev index next >