Addressed more issues raised by flawfinder.

This commit is contained in:
Andrew Wood
2023-10-18 23:10:29 +01:00
parent 2255dcc2bf
commit 9a9c117411
2 changed files with 48 additions and 26 deletions
+3 -3
View File
@@ -170,10 +170,10 @@ struct pvstate_s {
* Display state *
*****************/
struct {
/*@only@*/ /*@null@*/ char *display_buffer;
size_t display_buffer_size;
/*@only@*/ /*@null@*/ char *display_buffer; /* buffer for display string */
size_t display_buffer_size; /* size allocated to display buffer */
size_t display_string_len; /* length of string in display buffer */
unsigned int prev_screen_width; /* screen width last time we were called */
unsigned int prev_output_cols; /* visible width of the last string we output */
bool display_visible; /* set once anything written to terminal */
int percentage; /* transfer percentage completion */