mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-12-18 11:24:42 +00:00
Use alloca for stack based memory allocation
This commit is contained in:
@@ -760,11 +760,7 @@ static int stk500_paged_write(PROGRAMMER * pgm, AVRPART * p, AVRMEM * m,
|
||||
unsigned int page_size,
|
||||
unsigned int addr, unsigned int n_bytes)
|
||||
{
|
||||
#ifdef _MSC_VER
|
||||
unsigned char* buf = _alloca(page_size + 16);
|
||||
#else
|
||||
unsigned char buf[page_size + 16];
|
||||
#endif
|
||||
unsigned char* buf = alloca(page_size + 16);
|
||||
int memtype;
|
||||
int a_div;
|
||||
int block_size;
|
||||
|
||||
Reference in New Issue
Block a user