registrar: Use the safer strlcpy instead of strcpy.

This commit is contained in:
Michael Lotz 2015-08-23 12:35:25 +02:00
parent 462bfeede0
commit 71cc01b2b1
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ RegistrarThread::RegistrarThread(const char *name, int32 priority,
fName[0] = 0;
status_t err = name && fManagerMessenger.IsValid() ? B_OK : B_BAD_VALUE;
if (err == B_OK)
strcpy(fName, name);
strlcpy(fName, name, sizeof(fName));
fStatus = err;
}