replaced strncpy with strNcpy
authoraland <aland>
Thu, 19 Oct 2000 14:54:41 +0000 (14:54 +0000)
committeraland <aland>
Thu, 19 Oct 2000 14:54:41 +0000 (14:54 +0000)
src/lib/print.c

index 4240bf0..6db8a94 100644 (file)
@@ -155,9 +155,8 @@ int vp_prints_value(char * out, int outlen, VALUE_PAIR *vp, int delimitst)
                        a = 0;
                        break;
        }
-       strncpy(out, a?a:"UNKNOWN-TYPE", outlen);
-       out[outlen - 1] = 0;
-
+       strNcpy(out, a?a:"UNKNOWN-TYPE", outlen);
+       
        return strlen(out);
 }