projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Updating Patrick's C++ exceptions to build without warnings on solaris.
[m6w6/libmemcached]
/
libmemcached
/
memcached.hpp
diff --git
a/libmemcached/memcached.hpp
b/libmemcached/memcached.hpp
index bb8a9732d9b8614614f2b501650bf67a570018df..c42eba03c89f2be454133769c437b4b0b85081ab 100644
(file)
--- a/
libmemcached/memcached.hpp
+++ b/
libmemcached/memcached.hpp
@@
-446,9
+446,8
@@
public:
retval= set(it->first, it->second, expiration, flags);
if (retval == false)
{
retval= set(it->first, it->second, expiration, flags);
if (retval == false)
{
- char err_buff[64];
- sprintf(err_buff, "There was an error setting the key %s",
- it->first.c_str());
+ std::string err_buff("There was an error setting the key ");
+ err_buff.append(it->first);
throw(Error(err_buff, false));
}
++it;
throw(Error(err_buff, false));
}
++it;