CVSROOT: /cvs Module name: src Changes by: k...@cvs.openbsd.org 2015/11/03 07:20:00
Modified files: sbin/fdisk : cmd.c misc.c Log message: Don't allow the user to enter GPT partition names too large to fit in the GPT partition structure. And don't run off the end of the name buffer by confusing sizeof() with the number of elements in an array. Use the new GPTPARTNAMESIZE #define instead. While here, zap the old partition name before setting the new one, lest a short new name leave bits of an old long name in place. Originally spotted by jsg@ and his friend cppcheck. ok jsg@ for slightly different version.