From 7c6a7978c020b739e755c2bed56f91c5b7adf509 Mon Sep 17 00:00:00 2001 From: "SND\\MaddTheSane_cp" Date: Thu, 10 Jan 2013 20:46:32 +0000 Subject: Use strlcpy on OS X code. > Better handling of the net system on OS X. git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@82182 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- macosx/plugins/DFXVideo/macsrc/PluginGLView.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'macosx/plugins/DFXVideo/macsrc/PluginGLView.m') diff --git a/macosx/plugins/DFXVideo/macsrc/PluginGLView.m b/macosx/plugins/DFXVideo/macsrc/PluginGLView.m index 8f6f3802..ecfc25e8 100755 --- a/macosx/plugins/DFXVideo/macsrc/PluginGLView.m +++ b/macosx/plugins/DFXVideo/macsrc/PluginGLView.m @@ -418,7 +418,7 @@ void BlitScreen16NS(unsigned char * surf,long x,long y) int len, i; if(szDebugText[0] && ((time(NULL) - tStart) < 2)) { - strncpy(szDispBuf, szDebugText, 63); + strlcpy(szDispBuf, szDebugText, 63); } else { -- cgit v1.2.3