Skip to content
Snippets Groups Projects
Commit 9f32673e authored by Moe Jette's avatar Moe Jette
Browse files

Prevent mem size range overflow on adev

parent c7b38890
No related branches found
No related tags found
No related merge requests found
...@@ -247,8 +247,8 @@ static const char display_line[] = ...@@ -247,8 +247,8 @@ static const char display_line[] =
int node_sz_name = 15; int node_sz_name = 15;
int node_sz_state = 6; int node_sz_state = 6;
int node_sz_cpus = 4; int node_sz_cpus = 4;
int node_sz_mem = 6; int node_sz_mem = 9;
int node_sz_disk = 8; int node_sz_disk = 11;
int node_sz_weight = 6; int node_sz_weight = 6;
int node_sz_part = 10; int node_sz_part = 10;
int node_sz_features = 0; int node_sz_features = 0;
...@@ -547,8 +547,8 @@ int part_sz_part = 10; ...@@ -547,8 +547,8 @@ int part_sz_part = 10;
int part_sz_num = 5; int part_sz_num = 5;
int part_sz_state = 6; int part_sz_state = 6;
int part_sz_cpus = 4; int part_sz_cpus = 4;
int part_sz_mem = 6; int part_sz_mem = 9;
int part_sz_disk = 8; int part_sz_disk = 11;
int part_sz_nodes = 0; int part_sz_nodes = 0;
static void _print_partition_header(bool no_name) static void _print_partition_header(bool no_name)
...@@ -713,7 +713,6 @@ int _print_str(char *str, int width, bool right) ...@@ -713,7 +713,6 @@ int _print_str(char *str, int width, bool right)
format[1] = 's'; format[1] = 's';
format[2] = '\0'; format[2] = '\0';
} }
if ((printed = printf(format, str)) < 0) if ((printed = printf(format, str)) < 0)
return printed; return printed;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment