*sigh* (was: Re: GnomeICU patch.)



  I think touching a keyboard today was a bad idea... maybe I should lock myself
off my system tomorrow. :-)

  Anyway, saying that I had a fixed patch didn't do so much good when I didn't
attach it.  Here it is.

  Daniel

-- 
  Going on about Dungeons and Dragons being tools of the devil is like guarding
the door while *it* is coming up through the floorboards...
  The Demon Lord of Hla'Siloth may want to cut your soul up into a thousand
pieces, but at least he won't try to convince you that you haven't got one.

  -- [ approximately ] Terry Pratchett, _Johnny and the Dead_
--- gtkfunc.c~	Wed Mar 31 18:57:09 1999
+++ gtkfunc.c	Wed Mar 31 18:56:45 1999
@@ -2005,12 +2005,11 @@
   char *buf;
   if( Contacts[ cx ].messages )
     {
-      char *nick=gtk_entry_get_text(GTK_ENTRY(Contacts[cx].info_nick));
       int cy;
 
-      buf=g_malloc(strlen(nick)+strlen("Message from ")+3);
+      buf=g_malloc(strlen(Contacts[cx].nick)+strlen("Message from ")+3);
 
-      sprintf( buf, "Message from %s:", nick );
+      sprintf( buf, "Message from %s:", Contacts[cx].nick );
 
       icq_msgbox( Contacts[ cx ].message[ 0 ], buf, data );
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]