From 7f915c0f2a6a5e77414773c7a8e947f3266c598c Mon Sep 17 00:00:00 2001 From: "Wolfgang (Blub) Bumiller" Date: Fri, 30 Nov 2012 15:26:14 +0100 Subject: [PATCH] Don't try to add a slash to actual filenames, only paths... --- ftepp.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/ftepp.c b/ftepp.c index e7be1e4..3700fd3 100644 --- a/ftepp.c +++ b/ftepp.c @@ -994,12 +994,6 @@ static char *ftepp_include_find_path(const char *file, const char *pathfile) memcpy(vec_add(filename, len), pathfile, len); vec_push(filename, '/'); } - else { - len = strlen(pathfile); - memcpy(vec_add(filename, len), pathfile, len); - if (vec_last(filename) != '/') - vec_push(filename, '/'); - } len = strlen(file); memcpy(vec_add(filename, len+1), file, len); @@ -1062,7 +1056,7 @@ static bool ftepp_include(ftepp_t *ftepp) } inlex = lex_open(filename); if (!inlex) { - ftepp_error(ftepp, "failed to open include file `%s`", filename); + ftepp_error(ftepp, "open failed on include file `%s`", filename); vec_free(filename); return false; }