config_file.c
30.6 KB
-
config: fix Unicode BOM detection · b200a813
Defining the BOM as a string makes the array include the NUL-terminator, which means that the memcpy is going to check for that as well and thus never match for a nonempty file. Define the array as three chars, which makes the size correct.
Carlos Martín Nieto committed