registrar: Use the safer strlcpy instead of strcpy.
This commit is contained in:
parent
462bfeede0
commit
71cc01b2b1
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user