fixed what I fucked up last commit
This commit is contained in:
parent
0cacbcf174
commit
8df7a56095
@ -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
|
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
|
//DEALLOCATION
|
||||||
free(buffer);
|
free(buffer);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user