Revision: 75923
http://sourceforge.net/p/brlcad/code/75923
Author: starseeker
Date: 2020-05-25 18:17:23 +0000 (Mon, 25 May 2020)
Log Message:
-----------
slen, not len
Modified Paths:
--------------
brlcad/trunk/src/libbu/realpath_bsd.c
Modified: brlcad/trunk/src/libbu/realpath_bsd.c
===================================================================
--- brlcad/trunk/src/libbu/realpath_bsd.c 2020-05-25 18:11:24 UTC (rev
75922)
+++ brlcad/trunk/src/libbu/realpath_bsd.c 2020-05-25 18:17:23 UTC (rev
75923)
@@ -167,7 +167,7 @@
}
slen = readlink(resolved, symlink, sizeof(symlink) - 1);
/* POS30-C: ensure NULL termination of readlink */
- if (len >= 0) {
+ if (slen >= 0) {
symlink[slen] = '\0';
}
if (slen < 0) {
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits