mirror of
https://github.com/libretro/RetroArch
synced 2025-02-19 21:40:49 +00:00
(retrolaunch) Remove VLA
Signed-off-by: Saggi Mizrahi <ficoos@gmail.com>
This commit is contained in:
parent
79e9dc0ebb
commit
73cc87677e
@ -105,8 +105,7 @@ static int get_sha1(const char *path, char *result)
|
||||
{
|
||||
int fd;
|
||||
int rv;
|
||||
int buff_len = 4096;
|
||||
unsigned char buff[buff_len];
|
||||
unsigned char buff[4096];
|
||||
SHA1Context sha;
|
||||
|
||||
fd = open(path, O_RDONLY);
|
||||
@ -117,7 +116,7 @@ static int get_sha1(const char *path, char *result)
|
||||
SHA1Reset(&sha);
|
||||
rv = 1;
|
||||
while (rv > 0) {
|
||||
rv = read(fd, buff, buff_len);
|
||||
rv = read(fd, buff, 4096);
|
||||
if (rv < 0) {
|
||||
close(fd);
|
||||
return -errno;
|
||||
|
Loading…
x
Reference in New Issue
Block a user