openbsd-ports/audio/rioutil/patches/patch-librioutil_rio_c
2010-05-20 09:58:36 +00:00

14 lines
531 B
Plaintext

$OpenBSD: patch-librioutil_rio_c,v 1.1 2010/05/20 09:58:36 espie Exp $
--- librioutil/rio.c.orig Thu May 20 11:56:03 2010
+++ librioutil/rio.c Thu May 20 11:56:33 2010
@@ -373,7 +373,8 @@ int get_flist_riohd (rios_t *rio, u_int8_t memory_unit
return ret;
}
- iptr = (u_int32_t *)read_buffer = (u_int8_t *) malloc (RIO_FTS);
+ read_buffer = (u_int8_t *) malloc (RIO_FTS);
+ iptr = (u_int32_t *)read_buffer;
if (read_buffer == NULL) {
rio_log (rio, errno, "Could not allocate read buffer\n");
return errno;