From 5c48c3fd2b5a229e125455b3f5c23f4773b0191e Mon Sep 17 00:00:00 2001 From: Sven Hesse Date: Fri, 15 Oct 2010 13:54:23 +0000 Subject: GOB: Remove strncpy0() Replacing it (and some strncpy + manual terminating) with Common::strlcpy() svn-id: r53490 --- engines/gob/helper.h | 7 ------- 1 file changed, 7 deletions(-) (limited to 'engines/gob/helper.h') diff --git a/engines/gob/helper.h b/engines/gob/helper.h index d1f24792a5..8d2895bec8 100644 --- a/engines/gob/helper.h +++ b/engines/gob/helper.h @@ -28,13 +28,6 @@ namespace Gob { -/** A strncpy that forces the final \0. */ -inline char *strncpy0(char *dest, const char *src, size_t n) { - strncpy(dest, src, n); - dest[n] = 0; - return dest; -} - } // End of namespace Gob #endif // GOB_HELPER_H -- cgit v1.2.3