Browse Source

64bits

pull/78/head
Jérôme Lebel Jérôme Lebel 12 years ago
parent
commit
ed59af77d7
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      printbuf.h

+ 1
- 1
printbuf.h View File

@@ -41,7 +41,7 @@ printbuf_memappend(struct printbuf *p, const char *buf, size_t size);


#define printbuf_memappend_fast(p, bufptr, bufsize) \ #define printbuf_memappend_fast(p, bufptr, bufsize) \
do { \ do { \
if ((p->size - p->bpos) > bufsize) { \
if ((p->size - p->bpos) > (size_t)(bufsize)) { \
memcpy(p->buf + p->bpos, (bufptr), bufsize); \ memcpy(p->buf + p->bpos, (bufptr), bufsize); \
p->bpos += bufsize; \ p->bpos += bufsize; \
p->buf[p->bpos]= '\0'; \ p->buf[p->bpos]= '\0'; \


Loading…
Cancel
Save