]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
suggested by lha@stacken.kth.se.
authorDerrick Brashear <shadow@dementia.org>
Wed, 28 Aug 2002 04:35:51 +0000 (04:35 +0000)
committerGarry Zacheiss <zacheiss@mit.edu>
Wed, 28 Aug 2002 04:35:51 +0000 (04:35 +0000)
(cherry picked from commit 5a7fa71c8613589c1c38d1d7723d72221818017f)

src/afs/afs_pioctl.c

index 3c0a96796fbfcc2c2955c8c4675e854c3962a144..df8e58b23e5c3bcfb203c22a8bf03aa71739c175 100644 (file)
@@ -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);