Skip to content

Commit

Permalink
2009-01-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
Browse files Browse the repository at this point in the history
	* hurd/report-wait.c (describe_number): Use __stpcpy to prepend
	flavor to description only when flavor is not NULL.
  • Loading branch information
Roland McGrath committed Jan 7, 2009
1 parent 3c61205 commit 0db58a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hurd/report-wait.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* 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.
The GNU C Library is free software; you can redistribute it and/or
Expand Down Expand Up @@ -30,7 +30,7 @@ static char *
describe_number (string_t description, const char *flavor, long int i)
{
unsigned long int j;
char *p = flavor ? description : __stpcpy (description, flavor);
char *p = flavor == NULL ? description : __stpcpy (description, flavor);
char *end;

/* Handle sign. */
Expand Down

0 comments on commit 0db58a7

Please sign in to comment.