CE fix strange characters appearing at the end of file
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m46s
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m46s
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
#include <printf.h>
|
||||
#include <stdarg.h>
|
||||
#include <stddef.h>
|
||||
#include <string.h>
|
||||
|
||||
void cprintf (struct context* context, const char* fmt, ...) {
|
||||
va_list args;
|
||||
@@ -16,6 +17,7 @@ void cprintf (struct context* context, const char* fmt, ...) {
|
||||
return;
|
||||
}
|
||||
|
||||
memset (buf, 0, CPRINTF_BUF_MAX);
|
||||
int len = vsnprintf (buf, CPRINTF_BUF_MAX, fmt, args);
|
||||
|
||||
va_end (args);
|
||||
|
||||
@@ -138,7 +138,7 @@ void edit_start (const char* file_path, const char* text) {
|
||||
bb_remaining -= w;
|
||||
}
|
||||
|
||||
w = snprintf (bbptr, bb_remaining, ANSIQ_SCR_CLR2LEND "\n");
|
||||
w = snprintf (bbptr, bb_remaining, ANSIQ_SCR_CLR2END "\n");
|
||||
bbptr += w;
|
||||
bb_remaining -= w;
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
#include "arena_alloc.h"
|
||||
#include "context.h"
|
||||
#include "edit.h"
|
||||
#include "mprintf.h"
|
||||
#include "parser.h"
|
||||
#include "self.h"
|
||||
#include <desc.h>
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
#include <liballoc.h>
|
||||
#include <printf.h>
|
||||
#include <stdarg.h>
|
||||
#include <string.h>
|
||||
#include <system.h>
|
||||
|
||||
void putchar_ (char ch) { (void)ch; }
|
||||
@@ -18,6 +19,7 @@ void mprintf (const char* fmt, ...) {
|
||||
return;
|
||||
}
|
||||
|
||||
memset (buf, 0, MPRINTF_BUF_MAX);
|
||||
int len = vsnprintf (buf, MPRINTF_BUF_MAX, fmt, args);
|
||||
|
||||
va_end (args);
|
||||
|
||||
Reference in New Issue
Block a user