Posted By: Uhrwerk
file_str_read crashes with '#' character - 03/18/13 20:03
Hello jcl,
file_str_read produces a crash if the very first character in a file is '#'. Here are the steps necessary to reproduce the problem. First create a file test.txt with content like this:
If you then execute the following snippet the engine will crash.
Best regards,
Uhrwerk
file_str_read produces a crash if the very first character in a file is '#'. Here are the steps necessary to reproduce the problem. First create a file test.txt with content like this:
Code:
#123456789
Code:
#include <acknex.h> void main() { var h = file_open_read("test.txt"); if (h) { STRING* s = str_create("#128"); file_str_read(h,s); printf("The content is:\n%s\nThe length is:\n%d",s->chars,(int)str_len(s)); file_close(h); } }
Uhrwerk