Projects
Mega:24.03:SP1:Everything
telnet
_service:tar_scm:netkit-telnet-0.17-telnetrc.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:netkit-telnet-0.17-telnetrc.patch of Package telnet
diff --git a/telnet/commands.c b/telnet/commands.c index 636fb5c..c0cc9b9 100644 --- a/telnet/commands.c +++ b/telnet/commands.c @@ -2217,11 +2217,11 @@ cmdrc(char *m1, char *m2) if (isspace(line[0])) continue; if (strncasecmp(line, m1, l1) == 0) - strncpy(line, &line[l1], sizeof(line) - l1); + memmove(line, &line[l1], sizeof(line) - l1); else if (strncasecmp(line, m2, l2) == 0) - strncpy(line, &line[l2], sizeof(line) - l2); + memmove(line, &line[l2], sizeof(line) - l2); else if (strncasecmp(line, "DEFAULT", 7) == 0) - strncpy(line, &line[7], sizeof(line) - 7); + memmove(line, &line[7], sizeof(line) - 7); else continue; if (line[0] != ' ' && line[0] != '\t' && line[0] != '\n')
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2