summaryrefslogtreecommitdiff
path: root/src/01/05
diff options
context:
space:
mode:
Diffstat (limited to 'src/01/05')
-rw-r--r--src/01/05/doubly_linked_list.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/01/05/doubly_linked_list.c b/src/01/05/doubly_linked_list.c
index 307fcb3..dbeab6d 100644
--- a/src/01/05/doubly_linked_list.c
+++ b/src/01/05/doubly_linked_list.c
@@ -138,7 +138,8 @@ char *to_s(Node *node) {
memset(buffer, buffer_size, '\0');
if (node->prev && node->next)
- snprintf(buffer, buffer_size, "(%d<%d>%d) ", node->prev->data, node->data, node->next->data);
+ snprintf(buffer, buffer_size, "(%d<%d>%d) ", node->prev->data, node->data,
+ node->next->data);
else if (node->next)
snprintf(buffer, buffer_size, "(nil<%d>%d) ", node->data, node->next->data);
else