Fixed bug #70529 Session read causes "String is not zero-terminated" error

This commit is contained in:
Yasuo Ohgaki 2015-09-19 11:24:01 +09:00
parent 7680194a93
commit 2f7cc862d7
2 changed files with 5 additions and 0 deletions

View file

@ -519,6 +519,7 @@ PS_READ_FUNC(files)
return FAILURE;
}
ZSTR_VAL(*val)[ZSTR_LEN(*val)] = '\0';
return SUCCESS;
}