diff --git a/Library/Raisr_OpenCL.cpp b/Library/Raisr_OpenCL.cpp index 6f1a7a4..c302b24 100644 --- a/Library/Raisr_OpenCL.cpp +++ b/Library/Raisr_OpenCL.cpp @@ -133,6 +133,7 @@ static RNLERRORTYPE buildProgram(RaisrOpenCLContext *raisrOpenCLContext, ret = RNLErrorBadParameter; goto fail; } + filterShader[programSize] = '\0'; // Ensure null termination after reading fclose(programHandle); programHandle = NULL; } else