diff options
| author | Dave Hibberd <hibby@debian.org> | 2025-03-04 22:46:54 +0000 |
|---|---|---|
| committer | Dave Hibberd <hibby@debian.org> | 2025-03-04 22:46:54 +0000 |
| commit | f0b507a096d65291aedcc9f98cde1d7b8aabc024 (patch) | |
| tree | 93b91137e30825ba7fbb690c29d700fba88394ad /CommonCode.c | |
| parent | 9d0d20064dd879c2967a86ef0b6751c563d80196 (diff) | |
| parent | b128f2a43a16acef50de045ae6526772c04c395e (diff) | |
Update upstream source from tag 'upstream/6.0.24.66+repack'
Update to upstream version '6.0.24.66+repack'
with Debian dir 0a1e01b2c4f9c8b665a31c0f8523e8fa0e88b6be
Diffstat (limited to 'CommonCode.c')
| -rw-r--r-- | CommonCode.c | 3 |
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;
|
