From: Derrick Brashear Date: Wed, 28 Aug 2002 04:35:51 +0000 (+0000) Subject: suggested by lha@stacken.kth.se. X-Git-Tag: openafs-stable-1_2_7~29 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=c78069fad6f5db6790135f58c84094482849ab17;p=packages%2Fo%2Fopenafs.git suggested by lha@stacken.kth.se. (cherry picked from commit 5a7fa71c8613589c1c38d1d7723d72221818017f) --- diff --git a/src/afs/afs_pioctl.c b/src/afs/afs_pioctl.c index 3c0a96796..df8e58b23 100644 --- a/src/afs/afs_pioctl.c +++ b/src/afs/afs_pioctl.c @@ -1091,8 +1091,8 @@ afs_HandlePioctl(avc, acom, ablob, afollow, acred) if (outSize > ablob->out_size) outSize = ablob->out_size; if (outSize >= PIGGYSIZE) code = E2BIG; else if (outSize) { - AFS_COPYOUT(outData, ablob->out, outSize, code); outData[outSize]='\0'; + AFS_COPYOUT(outData, ablob->out, outSize, code); } } osi_FreeLargeSpace(outData);