From: Curt M. <we...@us...> - 2008-10-08 05:40:50
|
Update of /cvsroot/xastir/xastir/src In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv15387 Modified Files: awk.c Log Message: Updating a comment. Index: awk.c =================================================================== RCS file: /cvsroot/xastir/xastir/src/awk.c,v retrieving revision 1.36 retrieving revision 1.37 diff -C2 -d -r1.36 -r1.37 *** awk.c 16 Jan 2008 19:34:00 -0000 1.36 --- awk.c 8 Oct 2008 05:40:38 -0000 1.37 *************** *** 249,254 **** // Change this to an xastir_snprintf() function if we // need to use this awk_set_sym() function later. ! // strncpy can forget to null-terminate the string if ! // the destination isn't large enough. strncpy(s->val,val,minlen); s->len = l - 1; --- 249,254 ---- // Change this to an xastir_snprintf() function if we // need to use this awk_set_sym() function later. ! // strncpy won't null-terminate the string if there's no ! // '\0' in the first minlen bytes. strncpy(s->val,val,minlen); s->len = l - 1; |