[498] branches/PR-6722857/darwinup/Depot.cpp
Revision: 498 http://trac.macosforge.org/projects/darwinbuild/changeset/498 Author: wsiegrist@apple.com Date: 2009-03-26 13:08:54 -0700 (Thu, 26 Mar 2009) Log Message: ----------- Use sizeof() Modified Paths: -------------- branches/PR-6722857/darwinup/Depot.cpp Modified: branches/PR-6722857/darwinup/Depot.cpp =================================================================== --- branches/PR-6722857/darwinup/Depot.cpp 2009-03-26 00:30:51 UTC (rev 497) +++ branches/PR-6722857/darwinup/Depot.cpp 2009-03-26 20:08:54 UTC (rev 498) @@ -361,7 +361,7 @@ char* backup_dirpath; // we need the path minus our destination prefix for moving to the archive - strncpy(path, actual->path() + strlen(m_prefix) - 1, PATH_MAX-1); + strncpy(path, actual->path() + strlen(m_prefix) - 1, sizeof(path)); const char* dir = dirname(path); assert(dir != NULL);
participants (1)
-
source_changes@macosforge.org