Browse Source

fix typo in buffer_GETC

master
Felix von Leitner 19 years ago
parent
commit
c44e273bde
  1. 1
      CHANGES
  2. 2
      buffer.h

1
CHANGES

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

2
buffer.h

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

Loading…
Cancel
Save