Fix a crash in a g_warning.
authorDan Winship <danw@src.gnome.org>
Tue, 7 May 2002 17:15:10 +0000 (17:15 +0000)
committerDan Winship <danw@src.gnome.org>
Tue, 7 May 2002 17:15:10 +0000 (17:15 +0000)
* camel-object.c (camel_object_class_cast): Fix a crash in a
g_warning.

camel/ChangeLog
camel/camel-object.c

index 4bd0a93..b4311b4 100644 (file)
@@ -1,3 +1,8 @@
+2002-05-07  Dan Winship  <danw@ximian.com>
+
+       * camel-object.c (camel_object_class_cast): Fix a crash in a
+       g_warning.
+
 2002-05-07  Not Zed  <NotZed@Ximian.com>
 
        * camel-remote-store.c (remote_send_string): Check for LOGIN xxxx
index cb21b58..48a7797 100644 (file)
@@ -1,10 +1,9 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- *
  *
  * Author:
- *  Dan Winship <danw@ximian.com>
  *  Michael Zucchi <notzed@ximian.com>
  *
- * Copyright 2000 Ximian, Inc. (www.ximian.com)
+ * Copyright 2000-2002 Ximian, Inc. (www.ximian.com)
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of version 2 of the GNU General Public
@@ -550,7 +549,7 @@ camel_object_cast(CamelObject *o, CamelType ctype)
                k = k->parent;
        }
 
-       g_warning("Object %p (class '%s') doesn't have '%s' in its heirachy", o, o->klass->name, ctype->name);
+       g_warning("Object %p (class '%s') doesn't have '%s' in its hierarchy", o, o->klass->name, ctype->name);
 
        return NULL;
 }
@@ -568,7 +567,7 @@ camel_object_class_cast(CamelObjectClass *k, CamelType ctype)
                k = k->parent;
        }
 
-       g_warning("Class '%s' doesn't have '%s' in its heirarchy", k->name, ctype->name);
+       g_warning("Class '%s' doesn't have '%s' in its hierarchy", r->name, ctype->name);
 
        return NULL;
 }