rev 169 - trunk/src

SVN User <[email protected]>
Newsgroups gmane.comp.lang.prothon.cvs
Message-ID <[email protected]>
Author: bcollins
Date: 2004-03-27 23:01:57 -0500 (Sat, 27 Mar 2004)
New Revision: 169

Modified:
   trunk/src/console.c
Log:
Fix typo, apr_strcpyn not apr_strcpy


Modified: trunk/src/console.c
===================================================================
--- trunk/src/console.c	2004-03-28 00:28:21 UTC (rev 168)
+++ trunk/src/console.c	2004-03-28 04:01:57 UTC (rev 169)
@@ -189,7 +189,7 @@
 	if ((home = getenv("HOME")) != NULL)
 		apr_snprintf(histfile, sizeof(histfile), "%s/%s", home, PROTHON_HISTORY);
 	else
-		strcpy(histfile, PROTHON_HISTORY);
+		apr_cpystrn(histfile, PROTHON_HISTORY, sizeof(histfile));
 
 	Gl_histinit(histfile);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.