diff options
author | Steve Price <steve@FreeBSD.org> | 1999-12-27 01:02:31 +0000 |
---|---|---|
committer | Steve Price <steve@FreeBSD.org> | 1999-12-27 01:02:31 +0000 |
commit | 7037100c1dea1fd6249446b430c11ef747868fbf (patch) | |
tree | f4ae945024f4e31fb7745d62ab433a8e97ef3396 /audio/id3ren/files/patch-ab | |
parent | Update to version 4.21. (diff) |
Initial buffer correctly by zeroing out before use.
PR: 15030
Submitted by: maintainer
Notes
Notes:
svn path=/head/; revision=24122
Diffstat (limited to '')
-rw-r--r-- | audio/id3ren/files/patch-ab | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/audio/id3ren/files/patch-ab b/audio/id3ren/files/patch-ab new file mode 100644 index 000000000000..5cdd47156820 --- /dev/null +++ b/audio/id3ren/files/patch-ab @@ -0,0 +1,10 @@ +--- id3tag.c.orig Wed Mar 18 17:18:34 1998 ++++ id3tag.c Sun Dec 26 15:11:42 1999 +@@ -365,6 +365,7 @@ + return TRUE;
+ }
+
++ memset(string, 0, size);
+ fgets(string, size, stdin);
+
+ if (string[strlen(string)-1] == '\n')
|