diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2017-05-14 09:25:47 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2017-05-14 09:25:47 +0200 |
commit | bc9530b1b439752fdf340f8d13ded049f678660e (patch) | |
tree | 32d343a1a82fb7d68bf66c57720af73a98b2a18c /src | |
parent | 178d93bced74198123254bdff9c06b1121f633d6 (diff) | |
download | abaos-bc9530b1b439752fdf340f8d13ded049f678660e.tar.gz abaos-bc9530b1b439752fdf340f8d13ded049f678660e.tar.bz2 |
fixed termination bug in strlcpy
Diffstat (limited to 'src')
-rw-r--r-- | src/string.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/string.c b/src/string.c index 9be5e43..a229739 100644 --- a/src/string.c +++ b/src/string.c @@ -59,6 +59,7 @@ size_t strlcpy( char *d, const char *s, size_t n ) d[len] = s[len]; len++; } + d[len] = '\0'; while( s[len] ) { len++; |