openbsd-ports/sysutils/cfengine/patches/patch-src_package_c
sturm aec4c941c3 revive cfengine port
this is version 2.1.6, from and maintained by
William Yodlowsky <bsd at openbsd.rutgers.edu>
2004-06-17 11:21:42 +00:00

18 lines
660 B
Plaintext

$OpenBSD: patch-src_package_c,v 1.1 2004/06/17 11:21:43 sturm Exp $
--- src/package.c.orig 2004-06-10 23:27:18.000000000 -0400
+++ src/package.c 2004-06-10 23:21:39.000000000 -0400
@@ -339,11 +339,11 @@ int DPKGPackageCheck(char *package,char
treat "" as "no version" */
if (strncmp (evrstart, "(none)", strlen ("(none)")) == 0) {
- sprintf (evrstart, "\"\"");
+ (void)snprintf (evrstart, strlen("(none)"), "\"\"");
}
if (strncmp (version, "(none)", strlen ("(none)")) == 0) {
- sprintf (version, "\"\"");
+ (void)snprintf (version, strlen("(none)"), "\"\"");
}
/* the evrstart shall be a version number which we will