Fix memset (upstream git commit 2da38556d614b9bc969f65b3683c2ce6eb99e6bc)

This commit is contained in:
dcoppa 2011-12-08 18:27:19 +00:00
parent 925d371914
commit 5a51d88be5
2 changed files with 17 additions and 1 deletions

View File

@ -1,8 +1,9 @@
# $OpenBSD: Makefile,v 1.22 2011/11/28 14:11:25 dcoppa Exp $
# $OpenBSD: Makefile,v 1.23 2011/12/08 18:27:19 dcoppa Exp $
COMMENT = console client for pandora
DISTNAME = pianobar-2011.11.21
REVISION = 0
EXTRACT_SUFX = .tar.bz2
CATEGORIES = audio

View File

@ -0,0 +1,15 @@
$OpenBSD: patch-src_libpiano_piano_c,v 1.3 2011/12/08 18:27:19 dcoppa Exp $
Fix memset (upstream git commit 2da38556d614b9bc969f65b3683c2ce6eb99e6bc)
--- src/libpiano/piano.c.orig Thu Dec 8 19:20:36 2011
+++ src/libpiano/piano.c Thu Dec 8 19:21:32 2011
@@ -92,7 +92,7 @@ void PianoDestroyStation (PianoStation_t *station) {
free (station->name);
free (station->id);
free (station->seedId);
- memset (station, 0, sizeof (station));
+ memset (station, 0, sizeof (*station));
}
/* free complete station list