mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
Fix compiler warnings (-Wconversion)
Origin commit data
------------------
Commit: b645b644b0
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2013-10-08 (Tue, 08 Oct 2013)
This commit is contained in:
@@ -510,8 +510,8 @@ int CFlashUpdate::exec(CMenuTarget* parent, const std::string &actionKey)
|
||||
char * buffer;
|
||||
off_t filesize = lseek(fileno(fd), 0, SEEK_END);
|
||||
lseek(fileno(fd), 0, SEEK_SET);
|
||||
buffer =(char *) malloc(filesize+1);
|
||||
fread(buffer, filesize, 1, fd);
|
||||
buffer =(char *) malloc((uint32_t)filesize+1);
|
||||
fread(buffer, (uint32_t)filesize, 1, fd);
|
||||
fclose(fd);
|
||||
buffer[filesize] = 0;
|
||||
ShowMsgUTF(LOCALE_MESSAGEBOX_INFO, buffer, CMessageBox::mbrBack, CMessageBox::mbBack); // UTF-8
|
||||
|
Reference in New Issue
Block a user