r17345: Some C++ warnings
[jra/samba/.git] / source3 / intl / lang_tdb.c
index 016f64af52ad50772ccb75b7014804add60b31b1..ddb3d4d65e3e4202d5cd9eae21e790a6ffceed29 100644 (file)
@@ -197,7 +197,7 @@ const char *lang_msg(const char *msgid)
                        count++;
        }
 
-       if (!(msgid_quoted = SMB_MALLOC(strlen(msgid) + count + 1)))
+       if (!(msgid_quoted = (char *)SMB_MALLOC(strlen(msgid) + count + 1)))
                return msgid;
 
        /* string_sub() is unsuitable here as it replaces some punctuation