$OpenBSD: patch-wslib_plfunctions_c,v 1.1.1.1 2001/01/09 20:59:36 naddy Exp $
--- wslib/plfunctions.c.orig	Fri Mar 31 22:10:25 2000
+++ wslib/plfunctions.c	Tue Jan  9 20:59:01 2001
@@ -179,7 +179,7 @@ SSetIntegerForKey(int value, char *defau
     proplist_t object;
     char buffer[128];
 
-    sprintf(buffer, "%i", value);
+    snprintf(buffer, sizeof(buffer), "%i", value);
     object = PLMakeString(buffer);
  
     SSetObjectForKey(object, defaultName);
