summaryrefslogtreecommitdiff
path: root/CommonCode.c
diff options
context:
space:
mode:
authorDave Hibberd <hibby@debian.org>2025-03-04 22:46:52 +0000
committerDave Hibberd <hibby@debian.org>2025-03-04 22:46:52 +0000
commitb128f2a43a16acef50de045ae6526772c04c395e (patch)
tree77971053f1ab7355621a01f0f58c44b6d722c6a3 /CommonCode.c
parentc858986248f9ee86835be732f413824c0e42d729 (diff)
New upstream version 6.0.24.66+repackupstream/6.0.24.66+repack
Diffstat (limited to 'CommonCode.c')
-rw-r--r--CommonCode.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/CommonCode.c b/CommonCode.c
index 0866980..f00b8f6 100644
--- a/CommonCode.c
+++ b/CommonCode.c
@@ -4792,6 +4792,7 @@ void GetPortCTEXT(TRANSPORTENTRY * Session, char * Bufferptr, char * CmdTail, st
struct stat STAT;
struct PORTCONTROL * PORT = PORTTABLE;
char PortList[256] = "";
+ int len = 0;
while (PORT)
{
@@ -4833,7 +4834,7 @@ void GetPortCTEXT(TRANSPORTENTRY * Session, char * Bufferptr, char * CmdTail, st
*ptr = '\r';
- sprintf(PortList, "%s,%d", PortList, PORT->PORTNUMBER);
+ len += sprintf(&PortList[len], ",%d", PORT->PORTNUMBER);
}
PORT = PORT->PORTPOINTER;