mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-07-10 13:29:52 -04:00
tools: fix up build warnings
Change-Id: Ib1b11f2361d4a20a8cd3c4107f8e546f8ece3f49
This commit is contained in:
parent
115b2ae800
commit
202243a1ab
2 changed files with 3 additions and 4 deletions
|
|
@ -96,8 +96,8 @@ int voicefont(FILE* voicefontids,int targetnum,char* filedir, FILE* output, unsi
|
|||
for (i=0; i<count; i++)
|
||||
{
|
||||
pos[i] = ftell(output);
|
||||
sprintf(encfilename1, "%s%s.enc", filedir, names[i]);
|
||||
sprintf(encfilename2, "%s%s.wav.enc", filedir, names[i]);
|
||||
snprintf(encfilename1, sizeof(encfilename1), "%s%s.enc", filedir, names[i]);
|
||||
snprintf(encfilename2, sizeof(encfilename2), "%s%s.wav.enc", filedir, names[i]);
|
||||
encfilename = encfilename1;
|
||||
pEncFile = fopen(encfilename, "rb");
|
||||
if (pEncFile == NULL)
|
||||
|
|
|
|||
|
|
@ -211,7 +211,7 @@ enum cc_error chinachip_patch(const char* firmware, const char* bootloader,
|
|||
goto err;
|
||||
}
|
||||
|
||||
snprintf(header_time, 13, "%04d%02d%02d%02d%02d", time_info->tm_year + 1900,
|
||||
snprintf(header_time, 13, "%04u%02u%02u%02u%02u", time_info->tm_year + 1900,
|
||||
time_info->tm_mon,
|
||||
time_info->tm_mday,
|
||||
time_info->tm_hour,
|
||||
|
|
@ -254,4 +254,3 @@ err:
|
|||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue