From c38f0e21deb427802f4be2d4994903ae906ebbf2 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Mon, 12 May 2008 21:30:22 +0000 Subject: fixed build on linux --- src/anytun.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/anytun.cpp') diff --git a/src/anytun.cpp b/src/anytun.cpp index 64da130..3d985d4 100644 --- a/src/anytun.cpp +++ b/src/anytun.cpp @@ -355,16 +355,16 @@ bool initLibGCrypt() gcry_error_t err = gcry_control (GCRYCTL_DISABLE_SECMEM, 0); if( err ) { - char buf[NL_TEXTMAX]; - std::cout << "initLibGCrypt: Failed to disable secure memory: " << gpg_strerror_r(err, buf, NL_TEXTMAX) << std::endl; + char buf[STERROR_TEXT_MAX]; + std::cout << "initLibGCrypt: Failed to disable secure memory: " << gpg_strerror_r(err, buf, STERROR_TEXT_MAX) << std::endl; return false; } // Tell Libgcrypt that initialization has completed. err = gcry_control(GCRYCTL_INITIALIZATION_FINISHED); if( err ) { - char buf[NL_TEXTMAX]; - std::cout << "initLibGCrypt: Failed to finish initialization: " << gpg_strerror_r(err, buf, NL_TEXTMAX) << std::endl; + char buf[STERROR_TEXT_MAX]; + std::cout << "initLibGCrypt: Failed to finish initialization: " << gpg_strerror_r(err, buf, STERROR_TEXT_MAX) << std::endl; return false; } -- cgit v1.2.3