$OpenBSD: patch-src_package_c,v 1.2 2004/10/01 21:22:15 sturm Exp $
--- src/package.c.orig	Wed Aug 11 23:02:06 2004
+++ src/package.c	Fri Oct  1 23:14:49 2004
@@ -338,11 +338,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
