Terminate the output directory argument of flatc.
authorStewart Miles <smiles@google.com>
Tue, 22 Jul 2014 00:56:53 +0000 (17:56 -0700)
committerStewart Miles <smiles@google.com>
Tue, 22 Jul 2014 01:00:18 +0000 (18:00 -0700)
commit60acef94e1c3b9b8bf6e94e8b06ff3651dab0627
tree15d8294ecb717d41ec8fe02bcc4dda7e0c7d4855
parent3fb6a86d020f7423553a4e2dbba637b56d7760f6
Terminate the output directory argument of flatc.

Given the command

flatc -o . -c test.fbs

it would generate header file

.test_generated.h

rather than

./test_generated.h

This fixes this issue.

Tested:
Manually verified that flatc generates the correct output files given output
paths ending with and without '/' on Linux and Windows.

Bug: 16464827
Change-Id: I854cb881286f22690f1885f942cf3fd2fc59ca8d
include/flatbuffers/util.h
src/flatc.cpp
src/idl_gen_java.cpp