pass number of read characters to Skin constructor.
This commit is contained in:
parent
1085f83d02
commit
36eee9e151
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue