$OpenBSD: patch-Source_cmTryRunCommand_cxx,v 1.2 2006/07/31 23:55:51 espie Exp $
--- Source/cmTryRunCommand.cxx.orig	Mon Jul 31 16:49:57 2006
+++ Source/cmTryRunCommand.cxx	Tue Aug  1 00:32:19 2006
@@ -140,11 +140,11 @@ bool cmTryRunCommand::InitialPass(std::v
       char retChar[1000];
       if(worked)
         {
-        sprintf(retChar,"%i",retVal);
+        snprintf(retChar, sizeof retChar, "%i",retVal);
         }
       else
         {
-        strcpy(retChar, "FAILED_TO_RUN");
+        strlcpy(retChar, "FAILED_TO_RUN", sizeof retChar);
         }
       this->Makefile->AddCacheDefinition(argv[0].c_str(), retChar,
                                      "Result of TRY_RUN",
