Re: [PATCH 02/11] gssd: Fix cccache buffer size

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2020-07-20 10:43, Steve Dickson wrote:
Thanks for point this out but I think I'm going to go with this:
-	char buf[PATH_MAX+4+2+256];
+	/* dirname + cctype + d_name + NULL */
+	char buf[PATH_MAX+5+256+1];

which explains the needed space and as well removes the warning...

That's fine. I didn't spend much time wondering why it was written that way, just assumed there was a reason.

Doug




[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux