aboutsummaryrefslogtreecommitdiffstats
path: root/src/blogc
diff options
context:
space:
mode:
Diffstat (limited to 'src/blogc')
-rw-r--r--src/blogc/file.c4
-rw-r--r--src/blogc/main.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/blogc/file.c b/src/blogc/file.c
index cede962..71598b8 100644
--- a/src/blogc/file.c
+++ b/src/blogc/file.c
@@ -49,7 +49,7 @@ blogc_file_get_contents(const char *path, size_t *len, bc_error_t **err)
if (str->len == 0 && read_len > 0) {
// skipping BOM before validation, for performance. should be safe
// enough
- size_t skip = blogc_utf8_skip_bom((uint8_t*) buffer, read_len);
+ size_t skip = bc_utf8_skip_bom((uint8_t*) buffer, read_len);
read_len -= skip;
tmp += skip;
}
@@ -59,7 +59,7 @@ blogc_file_get_contents(const char *path, size_t *len, bc_error_t **err)
}
fclose(fp);
- if (!blogc_utf8_validate_str(str)) {
+ if (!bc_utf8_validate_str(str)) {
*err = bc_error_new_printf(BLOGC_ERROR_FILE,
"File content is not valid UTF-8: %s", path);
bc_string_free(str, true);
diff --git a/src/blogc/main.c b/src/blogc/main.c
index beb67d6..992b9e7 100644
--- a/src/blogc/main.c
+++ b/src/blogc/main.c
@@ -162,7 +162,7 @@ main(int argc, char **argv)
else if (i + 1 < argc)
tmp = argv[++i];
if (tmp != NULL) {
- if (!blogc_utf8_validate((uint8_t*) tmp, strlen(tmp))) {
+ if (!bc_utf8_validate((uint8_t*) tmp, strlen(tmp))) {
fprintf(stderr, "blogc: error: invalid value for "
"-D (must be valid UTF-8 string): %s\n", tmp);
goto cleanup;