Use %d sprintf() format for 'int' arguments rather than %u
This commit is contained in:
@@ -379,7 +379,7 @@ static void add_numeric_hook (int numeric, char *nick, char *stuff, Noise noisy,
|
||||
{
|
||||
entry = (NumericList *) new_malloc(sizeof(NumericList));
|
||||
entry->numeric = numeric;
|
||||
sprintf(entry->name, "%3.3u", numeric);
|
||||
sprintf(entry->name, "%3.3d", numeric);
|
||||
entry->next = NULL;
|
||||
entry->list = NULL;
|
||||
add_numeric_list(entry);
|
||||
@@ -416,7 +416,7 @@ static void add_numeric_dll_hook (int numeric, Noise noise, int serial, char *ni
|
||||
{
|
||||
entry = (NumericList *) new_malloc(sizeof(NumericList));
|
||||
entry->numeric = numeric;
|
||||
sprintf(entry->name, "%3.3u", numeric);
|
||||
sprintf(entry->name, "%3.3d", numeric);
|
||||
entry->next = NULL;
|
||||
entry->list = NULL;
|
||||
add_numeric_list(entry);
|
||||
@@ -768,7 +768,7 @@ static int show_numeric_list (int numeric)
|
||||
|
||||
if (numeric)
|
||||
{
|
||||
sprintf(buf, "%3.3u", numeric);
|
||||
sprintf(buf, "%3.3d", numeric);
|
||||
if ((tmp = find_numeric_list(numeric)))
|
||||
{
|
||||
for (list = tmp->list; list; list = list->next, cnt++)
|
||||
@@ -1642,7 +1642,7 @@ void do_stack_on (int type, char *args)
|
||||
nptr->list = p->list;
|
||||
nptr->next = NULL;
|
||||
nptr->numeric = -which;
|
||||
sprintf(nptr->name, "%3.3u", -which);
|
||||
sprintf(nptr->name, "%3.3d", -which);
|
||||
add_numeric_list(nptr);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user