projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ed95f1
)
replaced strncpy with strNcpy
author
aland
<aland>
Thu, 19 Oct 2000 14:54:41 +0000
(14:54 +0000)
committer
aland
<aland>
Thu, 19 Oct 2000 14:54:41 +0000
(14:54 +0000)
src/lib/print.c
patch
|
blob
|
history
diff --git
a/src/lib/print.c
b/src/lib/print.c
index
4240bf0
..
6db8a94
100644
(file)
--- a/
src/lib/print.c
+++ b/
src/lib/print.c
@@
-155,9
+155,8
@@
int vp_prints_value(char * out, int outlen, VALUE_PAIR *vp, int delimitst)
a = 0;
break;
}
- strncpy(out, a?a:"UNKNOWN-TYPE", outlen);
- out[outlen - 1] = 0;
-
+ strNcpy(out, a?a:"UNKNOWN-TYPE", outlen);
+
return strlen(out);
}