Make sure source strings are terminated (#1641)
authordan sinclair <dj2@everburning.com>
Mon, 7 Jan 2019 16:47:37 +0000 (11:47 -0500)
committerJohn Kessenich <johnkslang@users.noreply.github.com>
Mon, 7 Jan 2019 16:47:37 +0000 (23:47 +0700)
commite96fa717d387bff99b9a0fa47f422c863e0f2725
tree8ee140f26740ac8254ae6d8a3eb8d72d93ae26e1
parent6eab476e5adcad71cf8b46a875eedd164f201c5d
Make sure source strings are terminated (#1641)

* Make sure source strings are terminated

The source strings may or may not have a null terminator. We need to
make sure we add one before outputting the source strings as we iterate
over the c-str looking for the null terminator.

* Review feedback
glslang/MachineIndependent/ShaderLang.cpp
glslang/MachineIndependent/localintermediate.h