Fix bug read function for multi line files... ooops
This commit is contained in:
parent
7077c03e4f
commit
2ba8a35f5f
BIN
misc/sslogo.png
Normal file
BIN
misc/sslogo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 93 KiB |
@ -52,6 +52,7 @@
|
|||||||
#define TOKEN_STR "%"
|
#define TOKEN_STR "%"
|
||||||
#define TOKEN_BQ '`'
|
#define TOKEN_BQ '`'
|
||||||
#define NULLBYTE '\0'
|
#define NULLBYTE '\0'
|
||||||
|
#define NEWLINE '\n'
|
||||||
#define ENCOFFSET 3
|
#define ENCOFFSET 3
|
||||||
#define ENCSTEPODD 2
|
#define ENCSTEPODD 2
|
||||||
#define ENCSTEPEVEN 2
|
#define ENCSTEPEVEN 2
|
||||||
|
@ -608,7 +608,7 @@ char *process_line(char *line)
|
|||||||
|
|
||||||
while(fgets(read_line, sizeof(read_line), read_file) != NULL)
|
while(fgets(read_line, sizeof(read_line), read_file) != NULL)
|
||||||
{
|
{
|
||||||
sprintf(dynfile, "%s", read_line);
|
strcat(dynfile, read_line);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(read_size <= MAX_READFILE_LEN)
|
if(read_size <= MAX_READFILE_LEN)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user