openbsd-ports/audio/mp3encode/patches/patch-psy_c
avsm 6bb79aa158 - fix a set of buffer overflows in fgets into a wrong sized buffer
- use update-patches
- bump PKGNAME to p1
2003-04-14 09:39:18 +00:00

13 lines
374 B
Plaintext

$OpenBSD: patch-psy_c,v 1.1 2003/04/14 09:39:18 avsm Exp $
--- psy.c.orig Mon Apr 14 10:26:05 2003
+++ psy.c Mon Apr 14 10:26:37 2003
@@ -439,7 +439,7 @@ int table;
printf("Please check %s table\n", ta);
exit(1);
}
- fgets(t, 150, fp);
+ fgets(t, sizeof t, fp);
sscanf(t, "table %ld", &index);
if(index != table){
printf("error in absthr table %s",ta);