diff options
author | Anton L. Šijanec <sijanecantonluka@gmail.com> | 2020-05-14 18:22:34 +0200 |
---|---|---|
committer | Anton L. Šijanec <sijanecantonluka@gmail.com> | 2020-05-14 18:22:34 +0200 |
commit | 2b8ef629c516c5920bc110d8050256e8baaf5073 (patch) | |
tree | d237499edd955511cc4f28facb5434bd55a8d4a0 /src | |
parent | security mc (diff) | |
download | bverbose-2b8ef629c516c5920bc110d8050256e8baaf5073.tar bverbose-2b8ef629c516c5920bc110d8050256e8baaf5073.tar.gz bverbose-2b8ef629c516c5920bc110d8050256e8baaf5073.tar.bz2 bverbose-2b8ef629c516c5920bc110d8050256e8baaf5073.tar.lz bverbose-2b8ef629c516c5920bc110d8050256e8baaf5073.tar.xz bverbose-2b8ef629c516c5920bc110d8050256e8baaf5073.tar.zst bverbose-2b8ef629c516c5920bc110d8050256e8baaf5073.zip |
Diffstat (limited to '')
-rw-r--r-- | src/bvr.h | 2 | ||||
-rw-r--r-- | src/bvrcommands.c | 3 | ||||
-rw-r--r-- | src/jsbundle.c | 2 |
3 files changed, 6 insertions, 1 deletions
@@ -1,5 +1,7 @@ #pragma once #include <strlcpy.c> +#include <stdlib.h> +#include <stdio.h> #define SUCCESS 0 #define FAILURE -1 #define COPY_BUFFER_SIZE 128 diff --git a/src/bvrcommands.c b/src/bvrcommands.c index f08c0ab..5f58457 100644 --- a/src/bvrcommands.c +++ b/src/bvrcommands.c @@ -97,6 +97,9 @@ int bvr_handle_include(FILE * input, FILE * output) { if(stream == NULL) { strcat(notgoodatnamingvariables, BVR_COMMAND_FILE_EXT); stream = fopen(notgoodatnamingvariables+1, "r"); // ob1 fuckery + if(stream != NULL) { + break; + } } *singlepath = '\0'; } diff --git a/src/jsbundle.c b/src/jsbundle.c index a2f9b61..f7bf8d2 100644 --- a/src/jsbundle.c +++ b/src/jsbundle.c @@ -38,7 +38,7 @@ int bundle_js(char* bundle_filename, char* js_source_folder_name, char* file_ext strcat(source_filename, ent->d_name); source_file = fopen(source_filename, "r"); // printf("[jsbundle.c] source_filename: %s\n", source_filename); - fprintf(bundle_file, "\n// %s\n", source_filename); + fprintf(bundle_file, "\n/* %s */\n", source_filename); copy_buffer = fgetc(source_file); while (copy_buffer != EOF) { fputc(copy_buffer, bundle_file); |