From 81b0f30f6eaa3419e323d33f206a2e1ce52ff248 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Tue, 18 Jan 2022 17:10:02 +0300
Subject: [PATCH] load_voc: remove wrong use of '&' on the trash[] array.
---
load_voc.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/load_voc.c b/load_voc.c
index 3793d37a..eb3131ee 100644
--- a/load_voc.c
+++ b/load_voc.c
@@ -29,8 +29,6 @@
(http://www.freshmeat.net/projects/sox/)
*/
-/* $Id$ */
-
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -316,7 +314,7 @@ static int voc_get_block(SDL_RWops *src, vs_t *v, SDL_AudioSpec *spec)
default: /* text block or other krapola. */
for(i = 0; i < sblen; i++)
{
- if (SDL_RWread(src, &trash, sizeof (Uint8), 1) != 1)
+ if (SDL_RWread(src, trash, sizeof (Uint8), 1) != 1)
return 0;
}