- {
- char extname[ BUFSIZ ];
- char *starthere;
- int funcbn;
- int i;
-
- starthere = &extname[0];
- funcbn = p -> nl_block & 037;
- for ( i = 1 ; i < funcbn ; i++ ) {
- sprintf( starthere , EXTFORMAT , enclosing[ i ] );
- starthere += strlen( enclosing[ i ] ) + 1;
- }
- sprintf( starthere , EXTFORMAT , p -> symbol );
- starthere += strlen( p -> symbol ) + 1;
- if ( starthere >= &extname[ BUFSIZ ] ) {
- panic( "call namelength" );
- }
- putleaf( P2ICON , 0 , 0 , p2type( p ) , extname );
- }
+ sextname( extname , p -> symbol , p -> nl_block & 037 );
+ putleaf( P2ICON , 0 , 0 , p2type( p ) , extname );