Skip to content

Commit 0e44448

Browse files
committed
Revert change of strcpy to strncpy
1 parent fa0ec2c commit 0e44448

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/src/c_console.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1179,7 +1179,7 @@ void C_AddNotifyString(int printlevel, const char* color_code, const char* sourc
11791179
{
11801180
if (addtype == NEWLINE)
11811181
memmove(&NotifyStrings[0], &NotifyStrings[1], sizeof(struct NotifyText) * (NUMNOTIFIES-1));
1182-
strncpy((char *)NotifyStrings[NUMNOTIFIES-1].text, lines[i].string, lines[i].width);
1182+
strcpy((char *)NotifyStrings[NUMNOTIFIES-1].text, lines[i].string);
11831183
NotifyStrings[NUMNOTIFIES-1].timeout = gametic + (con_notifytime.asInt() * TICRATE);
11841184
NotifyStrings[NUMNOTIFIES-1].printlevel = printlevel;
11851185
addtype = NEWLINE;

0 commit comments

Comments
 (0)