Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/jabglue.c @ 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 | 7c74eef1d0e0 |
children | 51829325fe21 |
comparison
equal
deleted
inserted
replaced
841:f8c0447beec2 | 842:f74c5c6d2c24 |
---|---|
307 } | 307 } |
308 | 308 |
309 prio = settings_opt_get_int("priority"); | 309 prio = settings_opt_get_int("priority"); |
310 if (prio) { | 310 if (prio) { |
311 char strprio[8]; | 311 char strprio[8]; |
312 snprintf(strprio, 8, "%u", prio); | 312 snprintf(strprio, 8, "%d", (int)prio); |
313 xmlnode_insert_cdata(xmlnode_insert_tag(x, "priority"), | 313 xmlnode_insert_cdata(xmlnode_insert_tag(x, "priority"), |
314 strprio, (unsigned) -1); | 314 strprio, (unsigned) -1); |
315 } | 315 } |
316 | 316 |
317 if (msg) | 317 if (msg) |