basic/journal-importer: do not write non-unicode char to log

The type of cescape_char() is changed to int to make it easier to use
in "%.*s". We know the value is between 1 and 4, so size_t is overkill.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2018-05-31 13:04:18 +02:00
parent e743ce7053
commit b778252b4a
3 changed files with 9 additions and 4 deletions
+2 -2
View File
@@ -15,8 +15,8 @@
#include "macro.h"
#include "utf8.h"
size_t cescape_char(char c, char *buf) {
char * buf_old = buf;
int cescape_char(char c, char *buf) {
char *buf_old = buf;
switch (c) {