aboutsummaryrefslogtreecommitdiffstats
path: root/com32
diff options
context:
space:
mode:
authorErwan Velu <erwan.velu@free.fr>2009-11-29 21:13:00 +0100
committerErwan Velu <erwan.velu@free.fr>2009-12-04 10:11:15 +0100
commit7a52bd8cb0fe13f4a3d57ebd36d82a143e54ef01 (patch)
tree1d671a71ecbaccced9117a4aa9016bc2afaa7489 /com32
parentfe2a772f7c354d00e1bd1c5d0cf101a17b249556 (diff)
downloadsyslinux.git-7a52bd8cb0fe13f4a3d57ebd36d82a143e54ef01.tar.gz
syslinux.git-7a52bd8cb0fe13f4a3d57ebd36d82a143e54ef01.tar.xz
syslinux.git-7a52bd8cb0fe13f4a3d57ebd36d82a143e54ef01.zip
hdt: Fixing cpu flags splitting
Impact: improve rendering Under the cli, the cpu flags were sometimes leaking to another line
Diffstat (limited to 'com32')
-rw-r--r--com32/hdt/hdt-cli-cpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/hdt/hdt-cli-cpu.c b/com32/hdt/hdt-cli-cpu.c
index 1b080a23..fbdbc991 100644
--- a/com32/hdt/hdt-cli-cpu.c
+++ b/com32/hdt/hdt-cli-cpu.c
@@ -64,7 +64,7 @@ void main_show_cpu(int argc __unused, char **argv __unused,
static void show_flag(char *buffer, bool flag, char *flag_name, bool flush)
{
char output_buffer[81];
- if ((((strlen(buffer) + strlen(flag_name)) > 68) && flag) || flush) {
+ if ((((strlen(buffer) + strlen(flag_name)) > 66) && flag) || flush) {
snprintf(output_buffer, sizeof output_buffer, "Flags : %s\n",
buffer);
more_printf(output_buffer);