Skip to content

Commit

Permalink
fix romimg error
Browse files Browse the repository at this point in the history
  • Loading branch information
israpps committed Nov 7, 2024
1 parent af00502 commit d8ce025
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/romimg/src/romimg.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ int CreateBlankROMImg(const char *filename, ROMIMG *ROMImg)
CommentLength = IMAGE_COMMENT_BASESIZE + strlen(filename) + sizeof(LocalhostName) + sizeof(UserName) + MAX_PATH;
ROMImg->comment = (char *)malloc( CommentLength+1);
if (!ROMImg->comment) return ENOMEM;
snprintf(ROMImg->comment, CommentLength, "%08x,conffile,%s,%s@%s/%s", ROMImg->date, filename, BUFCHK(UserName), BUFCHK(LocalhostName), cwd);
snprintf(ROMImg->comment, CommentLength, "%08x,conffile,%s,%s@%s/%s", ROMImg->date, filename, UserName, LocalhostName, cwd);

// Create a blank RESET file.
ROMImg->NumFiles = 1;
Expand Down Expand Up @@ -454,7 +454,7 @@ static int AddExtInfoStat(struct FileEntry *file, unsigned char type, void *data

int AddFile(ROMIMG *ROMImg, const char *path, int upperconv)
{
char tbuf[10] = "\0"; // we dont need a large buf, this is for filling in the filename on ROMFS
char tbuf[11] = "\0"; // we dont need a large buf, this is for filling in the filename on ROMFS
FILE *InputFile;
int result;
unsigned int FileDateStamp;
Expand Down

0 comments on commit d8ce025

Please sign in to comment.