# HG changeset patch # User Mikael Berthe # Date 1146866446 -7200 # Node ID f74c5c6d2c24be44493703d18b09bd9780391cd7 # Parent f8c0447beec2a3523046a21f1cd6bb09bfc829c2 Fix negative priority Priority is an integer between -128 and +127. diff -r f8c0447beec2 -r f74c5c6d2c24 mcabber/src/jabglue.c --- 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); }