1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-21 08:42:23 +00:00

Fix bad static buffer bound. Bump PORTREVISION.

Obtained from:	OpenBSD
This commit is contained in:
Kris Kennaway 2003-06-27 03:29:59 +00:00
parent b3cecf32b4
commit 6a78684fea
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=83698
2 changed files with 13 additions and 0 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= libcdaudio
PORTVERSION= 0.99.9
PORTREVISION= 1
CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}

View File

@ -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);