Repositories
/
olsrd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78afca5
)
common: add a comment
author
Ferry Huberts
<ferry.huberts@pelagic.nl>
Thu, 2 Jun 2016 19:54:19 +0000
(21:54 +0200)
committer
Ferry Huberts
<ferry.huberts@pelagic.nl>
Thu, 2 Jun 2016 20:05:46 +0000
(22:05 +0200)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
src/common/string_handling.c
patch
|
blob
|
history
diff --git
a/src/common/string_handling.c
b/src/common/string_handling.c
index
7469b09
..
848d5fd
100644
(file)
--- a/
src/common/string_handling.c
+++ b/
src/common/string_handling.c
@@
-67,6
+67,8
@@
static char *_internal_strscpy(char *dest, const char *src, size_t dest_size) {
/* reserve space for null byte in dest */
dest_size--;
+
+ /* determine src length (without null byte) */
while ((length < dest_size) && src[length]) {
length++;
}