diff options
author | Dieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de> | 2011-01-26 01:29:01 +0100 |
---|---|---|
committer | Dieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de> | 2011-01-26 01:29:01 +0100 |
commit | 00a2ae09ccd803c1a22251a5c895d5779352d617 (patch) | |
tree | f3feb59fbe1dfde439360341d14b4341bbf0cb16 /users.cpp | |
parent | cdc9262868dcd658ca1105f284d390a15fd33729 (diff) | |
download | vdr-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.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; } |