From 734b248bdc3a9ac27af8ef88811ebeeda72b8651 Mon Sep 17 00:00:00 2001 From: leitner Date: Mon, 28 Apr 2003 20:58:04 +0000 Subject: [PATCH] fix typo in buffer_GETC --- CHANGES | 1 + buffer.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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) \ )