=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/top/utils.c,v retrieving revision 1.21 retrieving revision 1.22 diff -c -r1.21 -r1.22 *** src/usr.bin/top/utils.c 2007/10/01 09:15:44 1.21 --- src/usr.bin/top/utils.c 2010/01/29 00:36:09 1.22 *************** *** 1,4 **** ! /* $OpenBSD: utils.c,v 1.21 2007/10/01 09:15:44 otto Exp $ */ /* * Top users/processes display for Unix --- 1,4 ---- ! /* $OpenBSD: utils.c,v 1.22 2010/01/29 00:36:09 tedu Exp $ */ /* * Top users/processes display for Unix *************** *** 125,131 **** int i = 0; while (*array != NULL) { ! if (strcmp(string, *array) == 0) return (i); array++; i++; --- 125,131 ---- int i = 0; while (*array != NULL) { ! if (strncmp(string, *array, strlen(string)) == 0) return (i); array++; i++;