diff options
author | Sven Hesse | 2010-10-15 13:54:23 +0000 |
---|---|---|
committer | Sven Hesse | 2010-10-15 13:54:23 +0000 |
commit | 5c48c3fd2b5a229e125455b3f5c23f4773b0191e (patch) | |
tree | e046dd5ca61d6f7f78eb61dd9f7b9771168e6dc3 /engines/gob/helper.h | |
parent | 04973e85be84db4ac5a71a7012eb68c8e52af3c4 (diff) | |
download | scummvm-rg350-5c48c3fd2b5a229e125455b3f5c23f4773b0191e.tar.gz scummvm-rg350-5c48c3fd2b5a229e125455b3f5c23f4773b0191e.tar.bz2 scummvm-rg350-5c48c3fd2b5a229e125455b3f5c23f4773b0191e.zip |
GOB: Remove strncpy0()
Replacing it (and some strncpy + manual terminating) with
Common::strlcpy()
svn-id: r53490
Diffstat (limited to 'engines/gob/helper.h')
-rw-r--r-- | engines/gob/helper.h | 7 |
1 files changed, 0 insertions, 7 deletions
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 |