Skip to content

Commit 1151694

Browse files
committed
Address compiler warnings
1 parent ac74125 commit 1151694

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

rcxlib/RCX_Disasm.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -910,7 +910,7 @@ void RCX_Disasm::Print(RCX_Printer *dst, bool genLASM, string name,
910910
RCX_Result RCX_Disasm::Print1(RCX_Printer *dst, const UByte *code, int length, UShort pc)
911911
{
912912
char text[256];
913-
char line[256];
913+
char line[264];
914914

915915
RCX_Result result = SPrint1(text, code, length, pc);
916916

@@ -933,8 +933,9 @@ RCX_Result RCX_Disasm::Print1(RCX_Printer *dst, const UByte *code, int length, U
933933
else
934934
sprintf(line, "\t%s ", text);
935935
}
936-
} else
936+
} else {
937937
sprintf(line, "%03d %-42s ", pc, text);
938+
}
938939

939940
dst->Print(line);
940941

@@ -1111,7 +1112,7 @@ bool ResourceType(RCX_ChunkType type)
11111112
void RCX_Disasm::FindLabelArg(ULong format, const UByte *code, UShort pc)
11121113
{
11131114
char text[256];
1114-
char buf[256];
1115+
char buf[272];
11151116
int value;
11161117
switch(format) {
11171118
case kAF_Jump8:

0 commit comments

Comments
 (0)