Compare commits

...

2 Commits

Author SHA1 Message Date
9bc9bd0934 +make run 2023-08-03 11:57:43 +02:00
82ee6d5cdb raw() werks 2023-08-03 11:57:25 +02:00
3 changed files with 5 additions and 2 deletions

View File

@ -9,3 +9,6 @@ probotic: $(SRC) $(HDR)
# do nothing but update them...
$(SRC) $(HDR):
run:
./probotic -server irc.rizon.net -port 6667 -username probotic -channel '#/g/chad'

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);