Revision: 54037
http://brlcad.svn.sourceforge.net/brlcad/?rev=54037&view=rev
Author: brlcad
Date: 2012-12-11 14:31:38 +0000 (Tue, 11 Dec 2012)
Log Message:
-----------
strnlen() is a gnu extension, so not okay to use. fortunately, not needed.
Modified Paths:
--------------
brlcad/trunk/src/libbn/tests/bn_list.c
Modified: brlcad/trunk/src/libbn/tests/bn_list.c
===================================================================
--- brlcad/trunk/src/libbn/tests/bn_list.c 2012-12-11 02:20:53 UTC (rev
54036)
+++ brlcad/trunk/src/libbn/tests/bn_list.c 2012-12-11 14:31:38 UTC (rev
54037)
@@ -72,14 +72,14 @@
int
check_result_len(FILE *result_fd)
{
- char result_buf[BUFFER_SIZE];
- memset(result_buf, 0, BUFFER_SIZE);
+ char result_buf[BUFFER_SIZE+1];
+ memset(result_buf, 0, BUFFER_SIZE+1);
rewind(result_fd);
fread(result_buf, sizeof(char), BUFFER_SIZE, result_fd);
fclose(result_fd);
- return strnlen(result_buf, BUFFER_SIZE);
+ return strlen(result_buf);
}
/* Converts an array of doubles to integers */
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits