[darwinbuild-changes] [396] trunk/darwinup/File.cpp
source_changes at macosforge.org
source_changes at macosforge.org
Thu Oct 23 22:42:44 PDT 2008
Revision: 396
http://trac.macosforge.org/projects/darwinbuild/changeset/396
Author: kvv at apple.com
Date: 2008-10-23 22:42:44 -0700 (Thu, 23 Oct 2008)
Log Message:
-----------
build with -Wformat-security
Modified Paths:
--------------
trunk/darwinup/File.cpp
Modified: trunk/darwinup/File.cpp
===================================================================
--- trunk/darwinup/File.cpp 2008-10-24 01:10:36 UTC (rev 395)
+++ trunk/darwinup/File.cpp 2008-10-24 05:42:44 UTC (rev 396)
@@ -122,12 +122,13 @@
void File::print(FILE* stream) {
- char* dig = m_digest ? m_digest->string() : strdup("");
+ char* dig = m_digest ? m_digest->string() :
+ strdup(" ");
char mode_str[12];
strmode(m_mode, mode_str);
- fprintf(stream, "%s % 4d % 4d % 40s %s\n", mode_str, m_uid, m_gid, dig, m_path);
+ fprintf(stream, "%s % 4d % 4d %s %s\n", mode_str, m_uid, m_gid, dig, m_path);
free(dig);
}
@@ -371,4 +372,4 @@
file = FileFactory(0, NULL, FILE_INFO_NONE, path, sb.st_mode, sb.st_uid, sb.st_gid, sb.st_size, NULL);
return file;
-}
\ No newline at end of file
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/darwinbuild-changes/attachments/20081023/636d7ff3/attachment.html>
More information about the darwinbuild-changes
mailing list