summaryrefslogtreecommitdiff
path: root/net-im/jabberd/files/jabberd-1.4.4-str.c-rev1103.patch
blob: 4500a553ee424c811aa4ef75626249ba5eddf762 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- jabberd/lib/str.c	2005/04/12 11:43:15	1094
+++ jabberd/lib/str.c	2005/04/16 19:54:24	1103
@@ -417,7 +417,7 @@
     static char buff[64];
     int i;
 
-    i = snprintf(buff,63,"%s:%d",file,line);
+    i = snprintf(buff, sizeof(buff), "%s:%d", file, line);
     buff[i] = '\0';
 
     return buff;