aboutsummaryrefslogtreecommitdiffstats
path: root/src/java
diff options
context:
space:
mode:
authorNick Burch <nick@apache.org>2009-04-15 12:42:53 +0000
committerNick Burch <nick@apache.org>2009-04-15 12:42:53 +0000
commita148c6b552fcfa4c1dd270a5188bb016331e4e6e (patch)
tree45a1dbd473a54e63b6a15fbf1fb7daf4773e3954 /src/java
parent3514cbb38c2ac8e5a74fc7f312f955cb155c834e (diff)
downloadpoi-a148c6b552fcfa4c1dd270a5188bb016331e4e6e.tar.gz
poi-a148c6b552fcfa4c1dd270a5188bb016331e4e6e.zip
Fix bug #47034 - Reading the name of a NameRecord when the name is > 127
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@765163 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java')
-rw-r--r--src/java/org/apache/poi/hssf/record/NameRecord.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/org/apache/poi/hssf/record/NameRecord.java b/src/java/org/apache/poi/hssf/record/NameRecord.java
index 3d48023f4a..a938223606 100644
--- a/src/java/org/apache/poi/hssf/record/NameRecord.java
+++ b/src/java/org/apache/poi/hssf/record/NameRecord.java
@@ -416,7 +416,7 @@ public final class NameRecord extends StandardRecord {
LittleEndianInput in = ris;
field_1_option_flag = in.readShort();
field_2_keyboard_shortcut = in.readByte();
- int field_3_length_name_text = in.readByte();
+ int field_3_length_name_text = in.readUByte();
int field_4_length_name_definition = in.readShort();
field_5_externSheetIndex_plus1 = in.readShort();
field_6_sheetNumber = in.readUShort();