Re: [PATCH 1/2] fdisk: don't shorten long path to disk device

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

 



On Mon, Oct 10, 2011 at 03:12:17PM +0200, Petr Uzel wrote:
> fdisk/partname.c:partname() uses fixed 80 char static buffer for partition
> name. This might be not enough if the used path to the disk device is long
> enough, e.g.
[...]
> -	static char bufp[80];
> +	char *bufp;

Hmm, after review... your idea to increase the static buffer
size to PATH_MAX seems less invasive ;-)

 -       static char bufp[80];
 +       static char bufp[PATH_MAX];


Fixed :-)

    Karel


-- 
 Karel Zak  <kzak@xxxxxxxxxx>
 http://karelzak.blogspot.com
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux