comparison buffer.c @ 1037:7c899f24a85b

Some minor typo fixes, found by codespell.
author Thorsten Horstmann <thorsten.horstmann@web.de>
date Tue, 24 Feb 2015 20:45:07 +0800
parents 7dcb46da72d9
children a5b785c12340
comparison
equal deleted inserted replaced
1036:deed0571cacc 1037:7c899f24a85b
125 dropbear_exit("Bad buf_setpos"); 125 dropbear_exit("Bad buf_setpos");
126 } 126 }
127 buf->pos = pos; 127 buf->pos = pos;
128 } 128 }
129 129
130 /* increment the postion by incr, increasing the buffer length if required */ 130 /* increment the position by incr, increasing the buffer length if required */
131 void buf_incrwritepos(buffer* buf, unsigned int incr) { 131 void buf_incrwritepos(buffer* buf, unsigned int incr) {
132 if (incr > BUF_MAX_INCR || buf->pos + incr > buf->size) { 132 if (incr > BUF_MAX_INCR || buf->pos + incr > buf->size) {
133 dropbear_exit("Bad buf_incrwritepos"); 133 dropbear_exit("Bad buf_incrwritepos");
134 } 134 }
135 buf->pos += incr; 135 buf->pos += incr;