mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-22 10:50:07 +00:00
2009-01-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
* hurd/report-wait.c (describe_number): Use __stpcpy to prepend flavor to description only when flavor is not NULL.
This commit is contained in:
parent
3c612057ae
commit
0db58a77b4
@ -1,5 +1,5 @@
|
|||||||
/* Report on what a thread in our task is waiting for.
|
/* Report on what a thread in our task is waiting for.
|
||||||
Copyright (C) 1996,1997,1999,2002,2005 Free Software Foundation, Inc.
|
Copyright (C) 1996,1997,1999,2002,2005,2009 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
@ -30,7 +30,7 @@ static char *
|
|||||||
describe_number (string_t description, const char *flavor, long int i)
|
describe_number (string_t description, const char *flavor, long int i)
|
||||||
{
|
{
|
||||||
unsigned long int j;
|
unsigned long int j;
|
||||||
char *p = flavor ? description : __stpcpy (description, flavor);
|
char *p = flavor == NULL ? description : __stpcpy (description, flavor);
|
||||||
char *end;
|
char *end;
|
||||||
|
|
||||||
/* Handle sign. */
|
/* Handle sign. */
|
||||||
|
Loading…
Reference in New Issue
Block a user