fixed what I fucked up last commit

This commit is contained in:
Václav Šmejkal 2022-12-06 18:30:49 +01:00
parent 0cacbcf174
commit 8df7a56095
No known key found for this signature in database
GPG Key ID: FD749A97DF2D5E19

View File

@ -99,7 +99,8 @@ void writeLog(int loggerFile, char *logMessage)
sprintf(buffer, WRITE_FORMATTING, tm.tm_hour, tm.tm_min, tm.tm_sec, logMessage); //LOAD MESSAGE
(void) write(loggerFile, buffer, strlen(buffer));
if (write(loggerFile, buffer, strlen(buffer)) == 0) abort(); //WRITE (YAY) //TODO: Find why the fuck you can't use version line bellow
//(void) write(loggerFile, buffer, strlen(buffer));
//DEALLOCATION
free(buffer);