mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-03 01:23:49 +00:00
cdea6c7aa7
patch-source_server_c: fix an snprintf buffer size;[2] patch-funny.c: Security Fix [3] patch-names.c: Security Fix: Channeloperator can set specific modes to crash Bx clients [1] Bump PORTREVISION [1] Obtained from: BitchX Developers [2] Obtained from: OpenBSD [3] Obtained from: gentoo
13 lines
600 B
Plaintext
13 lines
600 B
Plaintext
$OpenBSD: patch-source_server_c,v 1.1 2003/04/16 09:04:24 avsm Exp $
|
|
--- source/server.c.orig Mon Apr 14 23:56:28 2003
|
|
+++ source/server.c Mon Apr 14 23:56:59 2003
|
|
@@ -144,7 +144,7 @@ void close_server (int cs_index, char *m
|
|
if (x_debug & DEBUG_OUTBOUND)
|
|
yell("Closing server %d because [%s]",
|
|
cs_index, message ? message : empty_string);
|
|
- snprintf(buffer, BIG_BUFFER_SIZE, "QUIT :%s\n", message);
|
|
+ snprintf(buffer, sizeof buffer, "QUIT :%s\n", message);
|
|
#ifdef HAVE_SSL
|
|
if (get_server_ssl(cs_index))
|
|
SSL_write(server_list[cs_index].ssl_fd, buffer, strlen(buffer));
|