URI: 
       tUse the raw buffer directly for text files - sacc - sacc(omys), simple console gopher client (mirror)
  HTML git clone https://git.parazyd.org/sacc
   DIR Log
   DIR Files
   DIR Refs
   DIR LICENSE
       ---
   DIR commit 3c632e6df61e2df58aaa753eedaeda289e490c7e
   DIR parent 26ce5a7ec50bff892f8a91f1f174d7d572039b5a
  HTML Author: Quentin Rameau <quinq@fifth.space>
       Date:   Thu, 22 Jun 2017 14:15:39 +0200
       
       Use the raw buffer directly for text files
       
       Diffstat:
         M sacc.c                              |       7 +++----
       
       1 file changed, 3 insertions(+), 4 deletions(-)
       ---
   DIR diff --git a/sacc.c b/sacc.c
       t@@ -143,7 +143,7 @@ display(Item *item)
        
                switch (item->type) {
                case '0':
       -                puts(item->target);
       +                puts(item->raw);
                        break;
                case '1':
                        items = item->dir->items;
       t@@ -203,6 +203,7 @@ molddiritem(char *raw)
                        item->selector = pickfield(&raw);
                        item->host = pickfield(&raw);
                        item->port = pickfield(&raw);
       +                item->raw = NULL;
                        item->dir = NULL;
        
                        items[nitems-1] = item;
       t@@ -293,7 +294,7 @@ dig(Item *entry, Item *item)
        {
                int sock;
        
       -        if (item->target)     /* already in cache */
       +        if (item->raw)     /* already in cache */
                        return 1;
        
                item->entry = entry;
       t@@ -308,8 +309,6 @@ dig(Item *entry, Item *item)
                if (!*item->raw)      /* empty read */
                        return 0;
        
       -        if (item->type == '0')
       -                item->target = item->raw;
                if (item->type == '1')
                        item->dir = molddiritem(item->raw);
                return 1;