diff options
Diffstat (limited to 'fs/nfsd/nfsctl.c')
-rw-r--r-- | fs/nfsd/nfsctl.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/nfsd/nfsctl.c b/fs/nfsd/nfsctl.c index b64a7fbfccf5..c4843467cfd4 100644 --- a/fs/nfsd/nfsctl.c +++ b/fs/nfsd/nfsctl.c | |||
@@ -1260,8 +1260,9 @@ static ssize_t __write_recoverydir(struct file *file, char *buf, size_t size) | |||
1260 | 1260 | ||
1261 | status = nfs4_reset_recoverydir(recdir); | 1261 | status = nfs4_reset_recoverydir(recdir); |
1262 | } | 1262 | } |
1263 | sprintf(buf, "%s\n", nfs4_recoverydir()); | 1263 | |
1264 | return strlen(buf); | 1264 | return scnprintf(buf, SIMPLE_TRANSACTION_LIMIT, "%s\n", |
1265 | nfs4_recoverydir()); | ||
1265 | } | 1266 | } |
1266 | 1267 | ||
1267 | /** | 1268 | /** |