diff options
author | kris <kris@FreeBSD.org> | 2003-06-27 11:29:59 +0800 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2003-06-27 11:29:59 +0800 |
commit | 4c39b52efb76f66e755e66ea639e5c5aa55f8973 (patch) | |
tree | 5e6d6639ecd2399d1bac74858f73d164dea3e8ed /audio | |
parent | 171f39450b9457eddae32d412dad58962e52bf0f (diff) | |
download | freebsd-ports-gnome-4c39b52efb76f66e755e66ea639e5c5aa55f8973.tar.gz freebsd-ports-gnome-4c39b52efb76f66e755e66ea639e5c5aa55f8973.tar.zst freebsd-ports-gnome-4c39b52efb76f66e755e66ea639e5c5aa55f8973.zip |
Fix bad static buffer bound. Bump PORTREVISION.
Obtained from: OpenBSD
Diffstat (limited to 'audio')
-rw-r--r-- | audio/libcdaudio/Makefile | 1 | ||||
-rw-r--r-- | audio/libcdaudio/files/patch-source_cdindex_c | 12 |
2 files changed, 13 insertions, 0 deletions
diff --git a/audio/libcdaudio/Makefile b/audio/libcdaudio/Makefile index 3c7cc9e974dd..624c8d6c8a7d 100644 --- a/audio/libcdaudio/Makefile +++ b/audio/libcdaudio/Makefile @@ -7,6 +7,7 @@ PORTNAME= libcdaudio PORTVERSION= 0.99.9 +PORTREVISION= 1 CATEGORIES= audio MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} diff --git a/audio/libcdaudio/files/patch-source_cdindex_c b/audio/libcdaudio/files/patch-source_cdindex_c new file mode 100644 index 000000000000..c2b3229ed6ab --- /dev/null +++ b/audio/libcdaudio/files/patch-source_cdindex_c @@ -0,0 +1,12 @@ +$OpenBSD: patch-source_cdindex_c,v 1.1 2003/04/14 09:47:46 avsm Exp $ +--- source/cdindex.c.orig Mon Apr 14 10:06:46 2003 ++++ source/cdindex.c Mon Apr 14 10:07:43 2003 +@@ -878,7 +878,7 @@ cdindex_http_submit(int cd_desc, struct + strncpy(outbuffer, "Content-Type: text/plain\n", 512); + write(sock, outbuffer, strlen(outbuffer)); + +- snprintf(cdindex_file, 512, "%s/.cdindex/%s", ++ snprintf(cdindex_file, sizeof cdindex_file, "%s/.cdindex/%s", + getenv("HOME"), entry.entry_cdindex_id); + stat(cdindex_file, &st); + |