diff options
| author | Soikk | 2025-10-23 20:45:15 +0200 |
|---|---|---|
| committer | Soikk | 2025-10-23 20:45:15 +0200 |
| commit | b62b7ab69a5f68fc40633c2828ba0eea04bccda2 (patch) | |
| tree | 32ec664d3335f770055447f9145658758321425a /log/log.c | |
| parent | 8dfa0b1418db29f0b62cd048d91002060b63cd47 (diff) | |
| download | soikk-libs-b62b7ab69a5f68fc40633c2828ba0eea04bccda2.tar.xz soikk-libs-b62b7ab69a5f68fc40633c2828ba0eea04bccda2.tar.zst | |
Fixed bug where iterator variable was incremented twice
Diffstat (limited to 'log/log.c')
| -rwxr-xr-x | log/log.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -174,7 +174,7 @@ void log_message(int level, char *file, int line, char *fmt, ...){ if(log_levels[level].stder) fputs(msg, stderr); for(int i = 0; i < log_levels[level].nfps; i++){ if(log_levels[level].fps[i] != NULL) - fputs(msg, log_levels[level].fps[i++]); + fputs(msg, log_levels[level].fps[i]); } } } |
