Mercurial > hg
changeset 842:f74c5c6d2c24
Fix negative priority
Priority is an integer between -128 and +127.
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sat, 06 May 2006 00:00:46 +0200 |
parents | f8c0447beec2 |
children | 915a7f17474a |
files | mcabber/src/jabglue.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mcabber/src/jabglue.c Thu May 04 20:22:03 2006 +0200 +++ b/mcabber/src/jabglue.c Sat May 06 00:00:46 2006 +0200 @@ -309,7 +309,7 @@ prio = settings_opt_get_int("priority"); if (prio) { char strprio[8]; - snprintf(strprio, 8, "%u", prio); + snprintf(strprio, 8, "%d", (int)prio); xmlnode_insert_cdata(xmlnode_insert_tag(x, "priority"), strprio, (unsigned) -1); }