pass number of read characters to Skin constructor.

This commit is contained in:
hns 2002-05-15 17:19:05 +00:00
parent 1085f83d02
commit 36eee9e151

View file

@ -84,9 +84,9 @@ public class SkinFile implements Updatable {
try { try {
FileReader reader = new FileReader (file); FileReader reader = new FileReader (file);
char c[] = new char[(int) file.length()]; char c[] = new char[(int) file.length()];
reader.read (c); int length = reader.read (c);
reader.close(); reader.close();
skin = new Skin (new String (c), app); skin = new Skin (c, length, app);
} catch (IOException x) { } catch (IOException x) {
app.logEvent ("Error reading Skin "+file+": "+x); app.logEvent ("Error reading Skin "+file+": "+x);
} }