strcpy() -> strlcpy() (CID 7984).

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40076 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2011-01-02 22:37:31 +00:00
parent 80b5decbec
commit b2330bb319

View File

@ -734,7 +734,7 @@ add_save_debug_syslog_menu()
char name[B_FILE_NAME_LENGTH];
if (volume->GetName(name, sizeof(name)) != B_OK)
strcpy(name, "unnamed");
strlcpy(name, "unnamed", sizeof(name));
// append offset, size, and type to the name
size_t len = strlen(name);