Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/jabglue.c @ 353:3fe43f6daa5a
Make imstatus2char a null-terminated string
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Fri, 22 Jul 2005 13:01:40 +0100 |
parents | ff6fb51bfd78 |
children | e8adc3c96e68 |
comparison
equal
deleted
inserted
replaced
352:e7e2f2fcc765 | 353:3fe43f6daa5a |
---|---|
43 static int s_id; | 43 static int s_id; |
44 static int regmode, regdone; | 44 static int regmode, regdone; |
45 static enum imstatus mystatus = offline; | 45 static enum imstatus mystatus = offline; |
46 unsigned char online; | 46 unsigned char online; |
47 | 47 |
48 char imstatus2char[imstatus_size] = { | 48 char imstatus2char[imstatus_size+1] = { |
49 '_', 'o', 'i', 'f', 'd', 'n', 'a' | 49 '_', 'o', 'i', 'f', 'd', 'n', 'a', '\0' |
50 }; | 50 }; |
51 | 51 |
52 static enum { | 52 static enum { |
53 STATE_CONNECTING, | 53 STATE_CONNECTING, |
54 STATE_GETAUTH, | 54 STATE_GETAUTH, |