1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
$NetBSD: patch-ae,v 1.2 1998/08/07 10:40:41 agc Exp $
--- soundmgr.c.orig Fri Jul 24 03:28:18 1998
+++ soundmgr.c Fri Jul 24 03:53:56 1998
@@ -38,3 +38,3 @@
struct stat sbuf;
-
+ char temp[256];
@@ -86,3 +86,4 @@
{
- stat(files[i], &sbuf);
+ sprintf(temp,"%s/%s",SOUNDS,files[i]);
+ stat(temp, &sbuf);
au_file_data[i] = malloc(sbuf.st_size);
@@ -90,3 +91,3 @@
- fi = fopen(files[i], "r");
+ fi = fopen(temp, "r");
@@ -108,3 +109,3 @@
{
- perror(file);
+ perror(temp);
exit(0);
|