Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-11-07 05:50:50 +0300
committerChristopher Faylor <me@cgf.cx>2002-11-07 05:50:50 +0300
commitc759d297b2b013eb15fd1267739824a6666e7491 (patch)
tree8ef3a42f5e4801fc7a84d8ce61a722526fb3cfe9 /winsup/cygwin/syscalls.cc
parent503430d83b96c7d645a0c0f0e6c44e7a943b24a3 (diff)
* syscalls.cc (getutid): Use UT_IDLEN where appropriate.
Diffstat (limited to 'winsup/cygwin/syscalls.cc')
-rw-r--r--winsup/cygwin/syscalls.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc
index 24638606f..bfc45e722 100644
--- a/winsup/cygwin/syscalls.cc
+++ b/winsup/cygwin/syscalls.cc
@@ -2571,7 +2571,7 @@ getutid (struct utmp *id)
case LOGIN_PROCESS:
case USER_PROCESS:
case DEAD_PROCESS:
- if (strncmp (id->ut_id, utmp_data.ut_id, 2) == 0)
+ if (strncmp (id->ut_id, utmp_data.ut_id, UT_IDLEN) == 0)
return &utmp_data;
break;
default: