Skip to content

Commit

Permalink
Merge pull request #13 from hjanuschka/non-c99
Browse files Browse the repository at this point in the history
Update buffer.c
  • Loading branch information
stephenmathieson committed Apr 17, 2015
2 parents f09c118 + becd47e commit 8a5cca3
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 8a5cca3

Please sign in to comment.