aboutsummaryrefslogtreecommitdiffstats
path: root/audio/icecast/files/patch-aa
blob: bd3c746dfc71e1cbc05bc3c522d44ef9600f1dd2 (plain) (blame)
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
--- src/http.c.orig Wed Jul  5 10:41:27 2000
+++ src/http.c  Sat Mar 10 23:03:45 2001
@@ -710,7 +710,7 @@
      if (fd < 0)
          sock_write (clicon->sock, "%s", out);
      else
-         fd_write (fd, out);
+         fd_write (fd, "%s", out);
      
      return 1;
   } else {
--- src/utility.c.orig  Wed Jul  5 12:52:40 2000
+++ src/utility.c   Sat Mar 10 23:01:37 2001
@@ -162,7 +162,7 @@
    
    if (!param) {
        fd_write (info.statsfile, 
-            buf);
+            "%s", buf);
        flags2string (admin, NULL);
        fd_write (info.statsfile, "\n");
    } else {
@@ -198,7 +198,7 @@
         nice_time (get_time () - con->connect_time, timebuf), type);
 
    if (!param)
-       fd_write (info.statsfile, buf);
+       fd_write (info.statsfile, "%s", buf);
    else
        sock_write (*sock, "%s", buf);
 }
@@ -223,7 +223,7 @@
         source->num_clients);
    
    if (!param)
-       fd_write (info.statsfile, buf);
+       fd_write (info.statsfile, "%s", buf);
    else
        sock_write (*sock, "%s", buf);
 }
@@ -257,7 +257,7 @@
    }
 
    if (!param)
-       fd_write (info.statsfile, buf);
+       fd_write (info.statsfile, "%s", buf);
    else
        sock_write (*sock, "%s", buf);
 
@@ -267,7 +267,7 @@
         source->audiocast.mount, source->audiocast.description, source->audiocast.public);
    
    if (!param)
-       fd_write (info.statsfile, buf);
+       fd_write (info.statsfile, "%s", buf);
    else
        sock_write (*sock, "%s", buf);
 
@@ -330,7 +330,7 @@
         get_user_agent (con), client->type == listener_e ? "listener" : "relay");
    
    if (!param)
-       fd_write(info.statsfile, buf);
+       fd_write(info.statsfile, "%s", buf);
    else
        sock_write (*sock, "%s", buf);
 }