Skip to content

Commit

Permalink
Update buffer.c
Browse files Browse the repository at this point in the history
support non c99 compiler settings
  • Loading branch information
hjanuschka committed Apr 16, 2015
1 parent f09c118 commit becd47e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -338,12 +338,13 @@ buffer_clear(buffer_t *self) {

void
buffer_print(buffer_t *self) {
int i;
size_t len = self->len;

printf("\n ");

// hex
for (int i = 0; i < len; ++i) {
for (i = 0; i < len; ++i) {
printf(" %02x", self->alloc[i]);
if ((i + 1) % 8 == 0) printf("\n ");
}
Expand Down

0 comments on commit becd47e

Please sign in to comment.