id bug fix: don't point to potentially clobbered static storage
authorPeter Fales <psfales@alcatel-lucent.com>
Tue, 25 Mar 2008 21:44:01 +0000 (22:44 +0100)
committerJim Meyering <meyering@redhat.com>
Tue, 25 Mar 2008 21:47:15 +0000 (22:47 +0100)
commitf7d1c59c224f81a8bab5fa2afcaf815988f50467
tree90dd8d9751be9c967320c0537dfd402d3572faa6
parent5f2ea441ac7eb7ace61e1ae422c5ae9165f02258
id bug fix: don't point to potentially clobbered static storage

On at least Mac OS, when calling getpwuid twice with the same UID,
the static storage containing results from the first call is
invalidated by the second call.
* src/id.c (main): Point to a copy of the user name string.
src/id.c