Skip to content

Commit

Permalink
0000964: Unchecked substring() while retrieving database name in fire…
Browse files Browse the repository at this point in the history
…bird
  • Loading branch information
chenson42 committed Dec 20, 2012
1 parent 6c32bec commit fc2e357
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -21,6 +21,7 @@

import java.util.List;

import org.apache.commons.lang.StringUtils;
import org.jumpmind.db.platform.IDatabasePlatform;
import org.jumpmind.db.sql.ISqlTransaction;
import org.jumpmind.db.sql.mapper.StringMapper;
Expand Down Expand Up @@ -133,7 +134,7 @@ public void purgeRecycleBin() {

@Override
public String getName() {
return super.getName().substring(0, 49);
return StringUtils.left(super.getName(), 50);
}

@Override
Expand Down

0 comments on commit fc2e357

Please sign in to comment.