Skip to content

Commit

Permalink
Fixed a bug in function AqvmBaseIo_OutputLog.
Browse files Browse the repository at this point in the history
  • Loading branch information
ax-6 committed Aug 1, 2024
1 parent e4e3b1b commit be22e83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aqvm/base/io/io.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ int AqvmBaseIo_UnlockStream(struct AqvmBaseFile_File* stream) {
}
}

int AqvmBaseIo_OutputToStream(struct AqvmBaseFile_File* stream, ...) {
int AqvmBaseIo_OutputLog(struct AqvmBaseFile_File* stream, ...) {
if (stream == NULL || stream->file == NULL ||
AqvmBaseFile_ferror(stream) != 0) {
// TODO
Expand All @@ -107,7 +107,7 @@ int AqvmBaseIo_OutputToStream(struct AqvmBaseFile_File* stream, ...) {
va_start(arg, stream);
char* str = va_arg(arg, char*);
while (str != NULL) {
int result = vfprintf(stream->file, "%s", arg);
int result = fprintf(stream->file, "%s", str);
if (result < 0) {
// TODO
return -3;
Expand Down

0 comments on commit be22e83

Please sign in to comment.