mirror of
				https://github.com/osmarks/ngircd.git
				synced 2025-10-31 14:02:59 +00:00 
			
		
		
		
	Allow more characters per line in MOTD and help text files
Change the line buffer in the Read_TextFile() function from 127 to COMMAND_LEN (=512) bytes. Lines can't even get that long, because they have to be prefixed before being sent to the client, so this is a sane maximum. This allows for even more "fancy" and "wider" MOTDs :-) Closes #271.
This commit is contained in:
		| @@ -853,7 +853,7 @@ no_listenports(void) | |||||||
| static bool | static bool | ||||||
| Read_TextFile(const char *Filename, const char *Name, array *Destination) | Read_TextFile(const char *Filename, const char *Name, array *Destination) | ||||||
| { | { | ||||||
| 	char line[127]; | 	char line[COMMAND_LEN]; | ||||||
| 	FILE *fp; | 	FILE *fp; | ||||||
| 	int line_no = 1; | 	int line_no = 1; | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Alexander Barton
					Alexander Barton