summaryrefslogtreecommitdiff
path: root/audio/vorbis-tools/patches/patch-ac
diff options
context:
space:
mode:
Diffstat (limited to 'audio/vorbis-tools/patches/patch-ac')
-rw-r--r--audio/vorbis-tools/patches/patch-ac78
1 files changed, 39 insertions, 39 deletions
diff --git a/audio/vorbis-tools/patches/patch-ac b/audio/vorbis-tools/patches/patch-ac
index 2b59c61f8ad..100caaa2427 100644
--- a/audio/vorbis-tools/patches/patch-ac
+++ b/audio/vorbis-tools/patches/patch-ac
@@ -1,46 +1,46 @@
-$NetBSD: patch-ac,v 1.7 2007/01/13 15:35:52 wiz Exp $
+$NetBSD: patch-ac,v 1.8 2008/03/14 18:55:54 wiz Exp $
---- oggenc/oggenc.c.orig 2005-06-03 10:15:10.000000000 +0000
+--- oggenc/oggenc.c.orig 2008-03-03 05:37:27.000000000 +0000
+++ oggenc/oggenc.c
-@@ -659,6 +659,8 @@ static void parse_options(int argc, char
+@@ -676,6 +676,8 @@ static void parse_options(int argc, char
- break;
- case 'a':
-+ if (strlen(optarg) == 0)
-+ break;
- opt->artist = realloc(opt->artist, (++opt->artist_count)*sizeof(char *));
- opt->artist[opt->artist_count - 1] = strdup(optarg);
- break;
-@@ -671,10 +673,14 @@ static void parse_options(int argc, char
- opt->comments[opt->comment_count - 1] = strdup(optarg);
- break;
- case 'd':
-+ if (strlen(optarg) == 0)
-+ break;
- opt->dates = realloc(opt->dates, (++opt->date_count)*sizeof(char *));
- opt->dates[opt->date_count - 1] = strdup(optarg);
- break;
+ break;
+ case 'a':
++ if (strlen(optarg) == 0)
++ break;
+ opt->artist = realloc(opt->artist, (++opt->artist_count)*sizeof(char *));
+ opt->artist[opt->artist_count - 1] = strdup(optarg);
+ break;
+@@ -688,10 +690,14 @@ static void parse_options(int argc, char
+ opt->comments[opt->comment_count - 1] = strdup(optarg);
+ break;
+ case 'd':
++ if (strlen(optarg) == 0)
++ break;
+ opt->dates = realloc(opt->dates, (++opt->date_count)*sizeof(char *));
+ opt->dates[opt->date_count - 1] = strdup(optarg);
+ break;
case 'G':
-+ if (strlen(optarg) == 0)
-+ break;
++ if (strlen(optarg) == 0)
++ break;
opt->genre = realloc(opt->genre, (++opt->genre_count)*sizeof(char *));
opt->genre[opt->genre_count - 1] = strdup(optarg);
break;
-@@ -683,6 +689,8 @@ static void parse_options(int argc, char
- exit(0);
- break;
- case 'l':
-+ if (strlen(optarg) == 0)
-+ break;
- opt->album = realloc(opt->album, (++opt->album_count)*sizeof(char *));
- opt->album[opt->album_count - 1] = strdup(optarg);
- break;
-@@ -693,6 +701,8 @@ static void parse_options(int argc, char
- opt->serial = 0; /* Failed, so just set to zero */
- break;
- case 't':
-+ if (strlen(optarg) == 0)
-+ break;
- opt->title = realloc(opt->title, (++opt->title_count)*sizeof(char *));
- opt->title[opt->title_count - 1] = strdup(optarg);
- break;
+@@ -700,6 +706,8 @@ static void parse_options(int argc, char
+ exit(0);
+ break;
+ case 'l':
++ if (strlen(optarg) == 0)
++ break;
+ opt->album = realloc(opt->album, (++opt->album_count)*sizeof(char *));
+ opt->album[opt->album_count - 1] = strdup(optarg);
+ break;
+@@ -712,6 +720,8 @@ static void parse_options(int argc, char
+ opt->fixedserial = 1;
+ break;
+ case 't':
++ if (strlen(optarg) == 0)
++ break;
+ opt->title = realloc(opt->title, (++opt->title_count)*sizeof(char *));
+ opt->title[opt->title_count - 1] = strdup(optarg);
+ break;