Messaging: Fix C-style array declarations

Change-Id: Ie7381dc5280ab4d907000ef551df9ea80553ddb4
This commit is contained in:
Michael W
2024-12-17 15:51:34 +01:00
parent 5403d02b5d
commit 6d11a6658c
17 changed files with 30 additions and 29 deletions

View File

@@ -486,7 +486,7 @@ class ExifOutputStream extends FilterOutputStream {
throws IOException {
switch (tag.getDataType()) {
case ExifTag.TYPE_ASCII:
byte buf[] = tag.getStringByte();
byte[] buf = tag.getStringByte();
if (buf.length == tag.getComponentCount()) {
buf[buf.length - 1] = 0;
dataOutputStream.write(buf);