fix typo in buffer_GETC

master
leitner 22 years ago
parent f7c6b5b3ee
commit 734b248bdc

@ -13,6 +13,7 @@
add html to textcode ('<' to '&lt;' etc) add html to textcode ('<' to '&lt;' etc)
add fmt_human and fmt_humank (format numbers ala ls -H/-h) add fmt_human and fmt_humank (format numbers ala ls -H/-h)
add fmt_httpdate and scan_httpdate add fmt_httpdate and scan_httpdate
fix typo breaking buffer_GETC in buffer (Marcus Winkler)
0.14: 0.14:
avoid bus errors in byte_copy avoid bus errors in byte_copy

@ -53,7 +53,7 @@ extern void buffer_seek(buffer* b,unsigned int len);
#define buffer_SEEK(s,len) ( (s)->p += (len) ) #define buffer_SEEK(s,len) ( (s)->p += (len) )
#define buffer_GETC(s,c) \ #define buffer_GETC(s,c) \
( ((s)->p < (s>->n) \ ( ((s)->p < (s)->n) \
? ( *(c) = *buffer_PEEK(s), buffer_SEEK((s),1), 1 ) \ ? ( *(c) = *buffer_PEEK(s), buffer_SEEK((s),1), 1 ) \
: buffer_get((s),(c),1) \ : buffer_get((s),(c),1) \
) )

Loading…
Cancel
Save