Index: remoting/base/util.cc |
diff --git a/remoting/base/util.cc b/remoting/base/util.cc |
index 53b121352954d103a343ea887626e2abce36d110..66a70eae537ada3877bc9883cfe463576b23a4a8 100644 |
--- a/remoting/base/util.cc |
+++ b/remoting/base/util.cc |
@@ -322,7 +322,7 @@ std::string GetUsername() { |
long buf_size = sysconf(_SC_GETPW_R_SIZE_MAX); |
if (buf_size <= 0) |
return std::string(); |
- scoped_array<char> buf(new char[buf_size]); |
+ scoped_ptr<char[]> buf(new char[buf_size]); |
struct passwd passwd; |
struct passwd* passwd_result = NULL; |
getpwuid_r(getuid(), &passwd, buf.get(), buf_size, &passwd_result); |