Skip to content

Commit

Permalink
'printw.c' fix to avoid potential buffer overflow issues in DOS Digit…
Browse files Browse the repository at this point in the history
…al Mars builds. Follow-up to commit ddf80d0.
  • Loading branch information
Bill-Gray committed Jul 16, 2024
1 parent 99481c0 commit d22725b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pdcurses/printw.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,11 @@ A few have neither. */
#endif
#if defined( HAVE_VSNPRINTF) && !defined( _WIN32)
#define vsnprint_func vsnprintf
#elif defined( __DMC__) && !defined( _WIN32)
#define vsnprint_func _vsnprintf
#endif


/* _vsnprintf() and earlier vsnprintf() return -1 if the output doesn't
fit in the buffer. When that happens, we try again with a
larger buffer, doubling its size until it fits. C99-compliant
Expand Down

0 comments on commit d22725b

Please sign in to comment.