Skip to content

Commit

Permalink
Address compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mesheets committed Jul 5, 2024
1 parent ac74125 commit 1151694
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions rcxlib/RCX_Disasm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -910,7 +910,7 @@ void RCX_Disasm::Print(RCX_Printer *dst, bool genLASM, string name,
RCX_Result RCX_Disasm::Print1(RCX_Printer *dst, const UByte *code, int length, UShort pc)
{
char text[256];
char line[256];
char line[264];

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

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

dst->Print(line);

Expand Down Expand Up @@ -1111,7 +1112,7 @@ bool ResourceType(RCX_ChunkType type)
void RCX_Disasm::FindLabelArg(ULong format, const UByte *code, UShort pc)
{
char text[256];
char buf[256];
char buf[272];
int value;
switch(format) {
case kAF_Jump8:
Expand Down

0 comments on commit 1151694

Please sign in to comment.