aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/gob.h
diff options
context:
space:
mode:
authorSven Hesse2007-03-30 17:52:31 +0000
committerSven Hesse2007-03-30 17:52:31 +0000
commitd65e05841a324d2ec898a3662f40e193fbc77e47 (patch)
tree55d85a458c0559e6c3d3b060dd54f7385562867a /engines/gob/gob.h
parent33c6a6f46057748a30a143c9eb5dc1f86c813e32 (diff)
downloadscummvm-rg350-d65e05841a324d2ec898a3662f40e193fbc77e47.tar.gz
scummvm-rg350-d65e05841a324d2ec898a3662f40e193fbc77e47.tar.bz2
scummvm-rg350-d65e05841a324d2ec898a3662f40e193fbc77e47.zip
- Fixed the IMD playing within mults, the non-interactive Gob3 demo should work better now
- Replaced strcpy with strncpy where appropriate - Added detection entries for other languages of the multilingual Gob3 CD; bug #1691230 svn-id: r26327
Diffstat (limited to 'engines/gob/gob.h')
-rw-r--r--engines/gob/gob.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/gob/gob.h b/engines/gob/gob.h
index a3da4f4fd3..222b6a84f2 100644
--- a/engines/gob/gob.h
+++ b/engines/gob/gob.h
@@ -103,6 +103,12 @@ enum SaveFiles {
SAVE_BLO // Notes
};
+inline char *strncpy0(char *dest, const char *src, size_t n) {
+ strncpy(dest, src, n);
+ dest[n] = 0;
+ return dest;
+}
+
// A "smart" reference counting templated class
template<typename T>
class ReferenceCounter {