OpenBSD fixed for lib/DtSvc.

This commit is contained in:
Pascal Stumpf
2012-08-09 22:51:52 +02:00
committed by Jon Trulson
parent 78053ff2a4
commit 185ec24999
10 changed files with 22 additions and 14 deletions

View File

@@ -272,10 +272,11 @@ _SHXbuf::filegen()
// Find the longest match if we are doing completion:
if (completion)
{
long i;
// compare all entries to a copy of the first entry
strcpy(filebuf, &bufptr[long(vec[0])]);
for (long i = 1; i < vec.size(); i++)
for (i = 1; i < vec.size(); i++)
{
register char *ref = filebuf;
register char *ptr = &bufptr[long(vec[i])];