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/authAlgo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/authAlgo.cpp') diff --git a/src/authAlgo.cpp b/src/authAlgo.cpp index 4657ddc..617c93b 100644 --- a/src/authAlgo.cpp +++ b/src/authAlgo.cpp @@ -74,8 +74,8 @@ void Sha1AuthAlgo::setKey(Buffer& key) gcry_error_t err = gcry_md_setkey( ctx_, key.getBuf(), key.getLength() ); if( err ) { - char buf[NL_TEXTMAX]; - cLog.msg(Log::PRIO_ERR) << "Sha1AuthAlgo::setKey: Failed to set cipher key: " << gpg_strerror_r(err, buf, NL_TEXTMAX); + char buf[STERROR_TEXT_MAX]; + cLog.msg(Log::PRIO_ERR) << "Sha1AuthAlgo::setKey: Failed to set cipher key: " << gpg_strerror_r(err, buf, STERROR_TEXT_MAX); } } -- cgit v1.2.3