small code-style improvements - bag - Dutch BAG Kadaster Extract parser (subset)
 (HTM) git clone git://git.codemadness.org/bag
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 158fa74f4dd5dfd895a3bfcf1adcb78db3cbb761
 (DIR) parent 4147776888bd1c5c47d267784978430944a94e7f
 (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
       Date:   Sat, 18 Nov 2023 23:33:11 +0100
       
       small code-style improvements
       
       Diffstat:
         M glue.c                              |       5 ++---
         M parse.c                             |       2 +-
       
       2 files changed, 3 insertions(+), 4 deletions(-)
       ---
 (DIR) diff --git a/glue.c b/glue.c
       @@ -1,5 +1,5 @@
        #if WIN32
       -#include <io.h>
       +#include <io.h> /* for setmode() */
        #endif
        
        #include <stdio.h>
       @@ -86,8 +86,7 @@ string_set(struct string *d, const char *data)
                                exit(1);
                        }
                }
       -        memcpy(d->data, data, len+ 1 ); /* copy including NUL byte */
       -        //d->data[len] = '\0';
       +        memcpy(d->data, data, len + 1); /* copy including NUL byte */
                d->len = len;
        }
        
 (DIR) diff --git a/parse.c b/parse.c
       @@ -1,7 +1,7 @@
        #define USE_MMAP
        
        #if WIN32
       -#include <io.h>
       +#include <io.h> /* for setmode() */
        #endif
        
        #ifdef USE_MMAP