From: Curt M. <we...@us...> - 2008-10-08 05:43:34
|
Update of /cvsroot/xastir/xastir/src In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv15578 Modified Files: util.c Log Message: Forcibly terminating a string as an added precaution. Index: util.c =================================================================== RCS file: /cvsroot/xastir/xastir/src/util.c,v retrieving revision 1.239 retrieving revision 1.240 diff -C2 -d -r1.239 -r1.240 *** util.c 8 Oct 2008 05:14:17 -0000 1.239 --- util.c 8 Oct 2008 05:43:22 -0000 1.240 *************** *** 5699,5702 **** --- 5699,5705 ---- + + + // Write out a WKT file void xastirWriteWKT(char *filename) *************** *** 5718,5721 **** --- 5721,5728 ---- } + + + + // makeMultiline // Create an APRS multiline string given an array of lat/lon pairs. *************** *** 5871,5874 **** --- 5878,5882 ---- returnString[stringOffset++]='{'; strncpy(&(returnString[stringOffset]),sqnc,6); + returnString[rsMaxLen-1] = '\0'; // Just to be safe } } *************** *** 5876,5877 **** --- 5884,5887 ---- return (returnString); } + + |