Skip to content

Commit

Permalink
Merge pull request #1857 from Suudy/master
Browse files Browse the repository at this point in the history
Use FILENAME_MAX to determine BUFSIZE when getting socket path.
  • Loading branch information
c-rack committed Mar 17, 2016
2 parents de56bc2 + 075de03 commit 9a3c9ff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_term_endpoint.cpp
Expand Up @@ -27,9 +27,11 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#include <stdio.h>
#include "testutil.hpp"

#define BUF_SIZE 73
/* Use the worst case filename size for the buffer (+1 for trailing NUL) */
#define BUF_SIZE (FILENAME_MAX+1)

int main (void)
{
Expand Down

0 comments on commit 9a3c9ff

Please sign in to comment.