openbsd-ports/audio/xmms-speex/patches/patch-speexutil_c
2010-05-19 16:14:48 +00:00

31 lines
981 B
Plaintext

$OpenBSD: patch-speexutil_c,v 1.1 2010/05/19 16:14:48 espie Exp $
--- speexutil.c.orig Wed May 19 18:09:26 2010
+++ speexutil.c Wed May 19 18:10:20 2010
@@ -239,7 +239,7 @@ int speex_comment_init(char *packet, int len, speex_co
//fwd vendor-length
- ((int*) packet)++;
+ packet = (int *)packet + 1;
len -= sizeof(int);
if (comment->vendor_length > len || comment->vendor_length < 0) return 0;
@@ -260,7 +260,7 @@ int speex_comment_init(char *packet, int len, speex_co
comment->comments = calloc(comment->comment_num, sizeof(int));
//fwd number of comments
- ((int*) packet)++;
+ packet = (int *)packet + 1;
len -= sizeof(int);
if (comment->comment_num > 0 && len < sizeof(int)) return 0;
@@ -270,7 +270,7 @@ int speex_comment_init(char *packet, int len, speex_co
this_length = *(int*) packet;
//fwd comment-length
- ((int*) packet)++;
+ packet = (int *)packet + 1;
len -= sizeof(int);
if (len < this_length || this_length < 0) return 0;