summaryrefslogtreecommitdiff
path: root/users.cpp
diff options
context:
space:
mode:
authorDieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de>2011-01-26 01:29:01 +0100
committerDieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de>2011-01-26 01:29:01 +0100
commit00a2ae09ccd803c1a22251a5c895d5779352d617 (patch)
treef3feb59fbe1dfde439360341d14b4341bbf0cb16 /users.cpp
parentcdc9262868dcd658ca1105f284d390a15fd33729 (diff)
downloadvdr-plugin-live-00a2ae09ccd803c1a22251a5c895d5779352d617.tar.gz
vdr-plugin-live-00a2ae09ccd803c1a22251a5c895d5779352d617.tar.bz2
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.
Diffstat (limited to 'users.cpp')
-rw-r--r--users.cpp3
1 files changed, 2 insertions, 1 deletions
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;
}