ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/pmapdump.c
(Generate patch)

Comparing ray/src/rt/pmapdump.c (file contents):
Revision 2.15 by rschregle, Wed Aug 14 18:02:11 2019 UTC vs.
Revision 2.16 by rschregle, Tue Jul 21 16:10:42 2020 UTC

# Line 9 | Line 9 | static const char RCSid[] = "$Id$";
9  
10     Roland Schregle (roland.schregle@{hslu.ch, gmail.com})
11     (c) Fraunhofer Institute for Solar Energy Systems,
12 +       supported by the German Research Foundation (DFG)
13 +       as part of the FARESYS project
14     (c) Lucerne University of Applied Sciences and Arts,
15         supported by the Swiss National Science Foundation (SNSF, #147053)
16 +   (c) Tokyo University of Science,
17 +       supported by the Japan Society for the Promotion of Science (JSPS)
18 +       under the Grants-in-Aid for Scientific Research Program (KAKENHI),
19 +       grant number JP19KK0115.
20     ======================================================================
21    
22     $Id$
# Line 270 | Line 276 | int main (int argc, char** argv)
276   #ifdef PMAP_OOC
277        /* Open leaf file with filename derived from pmap, replace pmapFile
278         * (which is currently the node file) */
279 <      strncpy(leafFname, argv [arg], 1024);
280 <      strncat(leafFname, PMAP_OOC_LEAFSUFFIX, 1024);
279 >      strncpy(leafFname, argv [arg], sizeof(leafFname) - 1);
280 >      strncat(leafFname, PMAP_OOC_LEAFSUFFIX, sizeof(leafFname) - 1);
281        fclose(pmapFile);
282        if (!(pmapFile = fopen(leafFname, "rb"))) {
283           sprintf(errmsg, "cannot open leaf file %s", leafFname);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines