raw() werks

This commit is contained in:
anon 2023-08-03 11:57:25 +02:00
parent 3f8f3a227a
commit 82ee6d5cdb
2 changed files with 2 additions and 2 deletions

View File

@ -115,7 +115,7 @@ DECL char *
raw(const char * const sql)
{
char* errmsg;
char* r = (char*)malloc(10000);
char* r = (char*)calloc(sizeof(char), 10000); // TODO: allow for reallocing in rtos, start with a smaller value
DBUSERERR(sqlite3_exec(connection, sql, rtos, &r, &errmsg));
if (errmsg){
free(r);

View File

@ -63,7 +63,7 @@ ircmsg(const char* fmt,
{ exit(1); }
puts(fmtdmsg);
IRCMSG(fmtdmsg);
IRCMSG(fmtdmsg); // TODO: make it send the message line by line
free(fmtdmsg);
va_end(args);