diff options
author | Carlos Martín Nieto <carlos@cmartin.tk> | 2012-09-14 20:43:47 +0200 |
---|---|---|
committer | Carlos Martín Nieto <carlos@cmartin.tk> | 2012-09-14 20:46:34 +0200 |
commit | b200a813c090c2ccf12ee4b5a99b45300fead2e8 (patch) | |
tree | b3903a30deaa5db8a96ce6b40cb549184837db47 /tests-clar/diff/diffiter.c | |
parent | f4ea176fa83297925cf145082b8f76ad44f88a7c (diff) | |
download | libgit2-b200a813c090c2ccf12ee4b5a99b45300fead2e8.tar.gz |
config: fix Unicode BOM detection
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.
Diffstat (limited to 'tests-clar/diff/diffiter.c')
0 files changed, 0 insertions, 0 deletions