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
|
--- icq_response.c.orig Tue Jan 23 16:49:05 2001
+++ icq_response.c Sun Mar 25 23:54:20 2001
@@ -740,6 +740,7 @@
return;
}
*tmp = 0;
+ char_conv ("wc",data); //By Kunia User's nick was not transcoded...;(
M_print( CONTACTCOL "\n%s" NOCOL " has added you to their contact list.\n", data );
tmp++;
data = tmp;
@@ -871,19 +872,12 @@
}
*tmp = 0;
char_conv ("wc",data);
-// temporaryy fix to buffer overflow
-// should be solved better -mc
-// strcpy (url_desc,data);
- url_desc[0] = '\0';
- strncat(url_desc,data,sizeof(url_data)-1);
+ strlcpy(url_desc,data,sizeof(url_data));
tmp++;
data = tmp;
char_conv ("wc",data);
-// same apllies here --mc
-// strcpy (url_data,data);
- url_data[0] = '\0';
- strncat (url_data,data,sizeof(url_data)-1);
+ strlcpy(url_data,data,sizeof(url_data));
// and again
// sprintf (message,"Description: %s \n URL: %s",url_desc,url_data);
|