diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2015-03-18 19:39:22 +0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2015-03-18 19:39:22 +0700 |
commit | c602cbe33849e9365a3b8e3f13a13e696aa7b9ec (patch) | |
tree | e9b756ac631766e6e7c85dd7e2eb383c087e748c /src/base/wlc | |
parent | fb5d4a664dc3790e98036a94734a33a848fd3666 (diff) | |
download | abc-c602cbe33849e9365a3b8e3f13a13e696aa7b9ec.tar.gz abc-c602cbe33849e9365a3b8e3f13a13e696aa7b9ec.tar.bz2 abc-c602cbe33849e9365a3b8e3f13a13e696aa7b9ec.zip |
Scalable SOP manipulation package.
Diffstat (limited to 'src/base/wlc')
-rw-r--r-- | src/base/wlc/wlcReadSmt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/base/wlc/wlcReadSmt.c b/src/base/wlc/wlcReadSmt.c index dcf018b7..fff760ec 100644 --- a/src/base/wlc/wlcReadSmt.c +++ b/src/base/wlc/wlcReadSmt.c @@ -709,6 +709,7 @@ static inline char * Smt_PrsLoadFile( char * pFileName, char ** ppLimit ) pBuffer = ABC_ALLOC( char, nFileSize + 16 ); pBuffer[0] = '\n'; RetValue = fread( pBuffer+1, nFileSize, 1, pFile ); + fclose( pFile ); // terminate the string with '\0' pBuffer[nFileSize + 1] = '\n'; pBuffer[nFileSize + 2] = '\0'; |