diff options
author | VMiklos <vmiklos@frugalware.org> | 2007-08-20 03:50:57 +0200 |
---|---|---|
committer | VMiklos <vmiklos@frugalware.org> | 2007-08-20 03:50:57 +0200 |
commit | 0bb1b7ffcbcb6cc82d7dc4fe1c7661e59218a312 (patch) | |
tree | 84a920f3e7db102c7e07850bada70d0aef21df40 | |
parent | 93ece6639942c625cedd5a4f6df63a59730c5187 (diff) |
skype_buddy_msg(): add a missing check
-rw-r--r-- | skype/skype.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/skype/skype.c b/skype/skype.c index dcbda0ae..a81699f5 100644 --- a/skype/skype.c +++ b/skype/skype.c @@ -190,7 +190,8 @@ static int skype_buddy_msg( struct im_connection *ic, char *who, char *message, int st; ptr = strchr(who, '@'); - *ptr = '\0'; + if(ptr) + *ptr = '\0'; buf = g_strdup_printf("MESSAGE %s %s\n", who, message); st = skype_write( ic, buf, strlen( buf ) ); |