From 00a2ae09ccd803c1a22251a5c895d5779352d617 Mon Sep 17 00:00:00 2001 From: Dieter Hametner Date: Wed, 26 Jan 2011 01:29:01 +0100 Subject: Yet an other patch from Rolf Ahrenberg: (live-git-20110126-remove-double-escape-and-compilation-warnings.patch.gz) Fixes a double HTML entities encoding error, omits some compiler warnings and updates the finish translations. --- users.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'users.cpp') diff --git a/users.cpp b/users.cpp index f2cf066..c82756c 100644 --- a/users.cpp +++ b/users.cpp @@ -100,7 +100,8 @@ bool cUser::Parse(const char *s) const char *cUser::ToText(void) { char* buffer = NULL; - asprintf(&buffer, "%d:%s:%s:%d", m_ID, m_Name.c_str(), m_PasswordMD5.c_str(), m_Userrights); + if (asprintf(&buffer, "%d:%s:%s:%d", m_ID, m_Name.c_str(), m_PasswordMD5.c_str(), m_Userrights) < 0) + return NULL; return buffer; } -- cgit v1.2.3