diff --git a/src/vol/namei_ops.c b/src/vol/namei_ops.c index 19aea95d6f..aee57a3c3c 100644 --- a/src/vol/namei_ops.c +++ b/src/vol/namei_ops.c @@ -1317,7 +1317,7 @@ namei_copy_on_write(IHandle_t *h) if (afs_stat(name.n_path, &tstat) < 0) return EIO; if (tstat.st_nlink > 1) { /* do a copy on write */ - char path[259]; + char path[NAMEI_PATH_LEN + 4]; char *buf; afs_size_t size; ssize_t tlen; diff --git a/src/volser/vol_split.c b/src/volser/vol_split.c index 29f5646684..fa42a7ca23 100644 --- a/src/volser/vol_split.c +++ b/src/volser/vol_split.c @@ -518,7 +518,7 @@ createMountpoint(Volume *vol, Volume *newvol, struct VnodeDiskObject *parent, AFSFid fid; struct timeval now; afs_uint32 newvN; - char symlink[32]; + char symlink[VNAMESIZE + 1]; ssize_t rc; FT_GetTimeOfDay(&now, 0);