aboutsummaryrefslogtreecommitdiff
path: root/src/common/mac/file_id.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/mac/file_id.cc')
-rw-r--r--src/common/mac/file_id.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/mac/file_id.cc b/src/common/mac/file_id.cc
index c5d7ed56..4661d5d6 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]) {