Index: src/common/mac/file_id.cc |
diff --git a/src/common/mac/file_id.cc b/src/common/mac/file_id.cc |
index c5d7ed56baf6cc86e2ae77038b7f1a341b42a294..4661d5d625c5f6d912ae72e5e3067eb1ebd63d85 100644 |
--- a/src/common/mac/file_id.cc |
+++ b/src/common/mac/file_id.cc |
@@ -34,6 +34,7 @@ |
// Author: Dan Waylonis |
#include <fcntl.h> |
+#include <stdio.h> |
#include <string.h> |
#include <unistd.h> |
@@ -45,7 +46,7 @@ using MacFileUtilities::MachoID; |
namespace google_breakpad { |
FileID::FileID(const char *path) { |
- strlcpy(path_, path, sizeof(path_)); |
+ snprintf(path_, sizeof(path_), "%s", path); |
} |
bool FileID::FileIdentifier(unsigned char identifier[16]) { |