changeset 17456:b8ce59172e6a

100L m_option_copy should use the copy callback and not the set one.
author albeu
date Sun, 22 Jan 2006 12:43:14 +0000
parents 1bb20b4c4082
children d7d606d54056
files m_option.h
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/m_option.h	Sun Jan 22 05:57:46 2006 +0000
+++ b/m_option.h	Sun Jan 22 12:43:14 2006 +0000
@@ -259,7 +259,7 @@
 inline  static void
 m_option_copy(m_option_t* opt,void* dst, void* src) {
   if(opt->type->copy)
-    opt->type->set(opt,dst,src);
+    opt->type->copy(opt,dst,src);
   else if(opt->type->size > 0)
     memcpy(dst,src,opt->type->size);
 }