diff --git a/CHANGES b/CHANGES index 67120c8..e4a0f5b 100644 --- a/CHANGES +++ b/CHANGES @@ -13,6 +13,7 @@ add html to textcode ('<' to '<' 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 diff --git a/buffer.h b/buffer.h index 964b4f2..dca8f91 100644 --- a/buffer.h +++ b/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) \ )