Edit

IABSD.fr/ports/audio/mpegaudio/patches/patch-psy_c

Branch :

  • Show log

    Commit

  • Author : avsm
    Date : 2003-04-14 09:46:06
    Hash : a2f7849d
    Message : - fix another static buffer overflow in fgets - use update-patches

  • audio/mpegaudio/patches/patch-psy_c
  • $OpenBSD: patch-psy_c,v 1.1 2003/04/14 09:46:06 avsm Exp $
    --- psy.c.orig	Mon Apr 14 10:41:19 2003
    +++ psy.c	Mon Apr 14 10:41:48 2003
    @@ -428,7 +428,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);