[darwinbuild-changes] [498] branches/PR-6722857/darwinup/Depot.cpp
source_changes at macosforge.org
source_changes at macosforge.org
Thu Mar 26 13:08:54 PDT 2009
Revision: 498
http://trac.macosforge.org/projects/darwinbuild/changeset/498
Author: wsiegrist at 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);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/darwinbuild-changes/attachments/20090326/8f8cbb38/attachment.html>
More information about the darwinbuild-changes
mailing list