freebsd-ports/audio/id3ren/files/patch-ab
Steve Price 7037100c1d Initial buffer correctly by zeroing out before use.
PR:		15030
Submitted by:	maintainer
1999-12-27 01:02:31 +00:00

11 lines
235 B
Plaintext

--- 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')