From: Erik M. <er...@us...> - 2002-01-06 19:02:31
|
Update of /cvsroot/blob/blob/src/blob In directory usw-pr-cvs1:/tmp/cvs-serv27415/src/blob Modified Files: xmodem.c Log Message: Change blockBuf[] into a static variable because we can't have 1024 bytes on the stack. Index: xmodem.c =================================================================== RCS file: /cvsroot/blob/blob/src/blob/xmodem.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- xmodem.c 2002/01/05 20:21:49 1.1 +++ xmodem.c 2002/01/06 19:02:29 1.2 @@ -63,6 +63,10 @@ #define ERROR(...) do { } while (0) + +static char blockBuf[1024]; + + static inline void WriteByte(char cc) { serial_write_raw(cc); } @@ -85,7 +89,6 @@ int XModemReceive(char *bufBase, int bufLen) { - char blockBuf[1024]; unsigned int errors = 0; unsigned int wantBlockNo = 1; unsigned int length = 0; |