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