diff --git a/hwb1/src/hwb1/MyApplet.java b/hwb1/src/hwb1/MyApplet.java index 8684bda..4872949 100644 --- a/hwb1/src/hwb1/MyApplet.java +++ b/hwb1/src/hwb1/MyApplet.java @@ -70,7 +70,7 @@ public class MyApplet extends Applet { response = storage; if (length > response.length) { - length = (short) response.length; + ISOException.throwIt((short)(ISO7816.SW_CORRECT_LENGTH_00 | response.length)); } }