Subversion Repositories Programming Utils

Compare Revisions

Ignore whitespace Rev 71 → Rev 72

/trunk/JavaSerial/NativeCode/SerialPortImpl.c
1610,7 → 1610,7
continue;
}
if( isatty( fd ) ){
if( isatty( fd ) && port_names_size < 255 ){
port_names[ port_names_size ] = malloc( strlen( entry->d_name ) + 6 );
memcpy( port_names[ port_names_size ], "/dev/", 5 );
memcpy( port_names[ port_names_size ] + 5, entry->d_name, strlen( entry->d_name ) + 1 );