mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-08 11:23:12 +02:00
- Made some (incorrect) -Wall warnings dissapear.
This commit is contained in:
@@ -735,3 +735,4 @@
|
||||
- Added 3.2.3 release notes (expected to be changed later on).
|
||||
- Updated russian-w1251 (added 2 chars).
|
||||
- Made the (G)ZLINE warning only happen on add, as it should. Reported by crazy.
|
||||
- Made some (incorrect) -Wall warnings dissapear.
|
||||
|
||||
+4
-4
@@ -202,8 +202,8 @@ long set_usermode(char *umode)
|
||||
*/
|
||||
|
||||
unsigned char *StripColors(unsigned char *text) {
|
||||
int i = 0, len = strlen(text), save_len;
|
||||
char nc = 0, col = 0, rgb = 0, *save_text;
|
||||
int i = 0, len = strlen(text), save_len=0;
|
||||
char nc = 0, col = 0, rgb = 0, *save_text=NULL;
|
||||
static unsigned char new_str[4096];
|
||||
|
||||
while (len > 0)
|
||||
@@ -267,8 +267,8 @@ unsigned char *StripColors(unsigned char *text) {
|
||||
/* strip color, bold, underline, and reverse codes from a string */
|
||||
const char *StripControlCodes(unsigned char *text)
|
||||
{
|
||||
int i = 0, len = strlen(text), save_len;
|
||||
char nc = 0, col = 0, rgb = 0, *save_text;
|
||||
int i = 0, len = strlen(text), save_len=0;
|
||||
char nc = 0, col = 0, rgb = 0, *save_text=NULL;
|
||||
static unsigned char new_str[4096];
|
||||
while (len > 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user