cvs commit: patches/esound esound-0.2.32-AUDIODEV-1.patch esound-0.2.32-AUDIODEV.patch

jim at linuxfromscratch.org jim at linuxfromscratch.org
Fri Jun 4 08:43:40 PDT 2004


jim         04/06/04 09:43:40

  Added:       esound   esound-0.2.32-AUDIODEV-1.patch
  Removed:     esound   esound-0.2.32-AUDIODEV.patch
  Log:
  Naming Scheme Update
  
  Revision  Changes    Path
  1.1                  patches/esound/esound-0.2.32-AUDIODEV-1.patch
  
  Index: esound-0.2.32-AUDIODEV-1.patch
  ===================================================================
  Submitted By: Boris Buegling <boris at icculus.org>
  Date: 2003-03-22
  Initial Package Version: 0.2.32
  Origin: None
  Description: Both the SDL alsa-driver and esound use the environment variable
  AUDIODEV, unfortunately for completely different purposes. If the AUDIODEV
  variable is set and contains no slashes, esound will segfault. This patch
  introduces a second check, which prevents this.
  
  diff -Naur esound-0.2.32/util.c esound-0.2.32.foo/util.c
  --- esound-0.2.32/util.c	2003-08-01 15:25:14.000000000 +0200
  +++ esound-0.2.32.foo/util.c	2004-03-22 21:52:50.838188472 +0100
  @@ -31,7 +31,10 @@
   			audiodev = "";
   		} else {
   			audiodev = strrchr(audiodev, '/');
  -			audiodev++;
  +			if (!audiodev)
  +				audiodev = "";
  +			else
  +				audiodev++;
   		}
   		dirname = malloc(strlen(audiodev) + sizeof("/tmp/.esd"));
   		strcpy(dirname, "/tmp/.esd");
  
  
  



More information about the patches mailing list