* path.cc (readlink): Check if buffer length is positive. Truncate output to

buffer length.  Don't terminate buffer with '\0'.
This commit is contained in:
Christopher Faylor
2000-09-04 17:52:42 +00:00
parent 9c136d7ea6
commit f76325499a
14 changed files with 33 additions and 27 deletions

View File

@@ -241,13 +241,13 @@ MTinterface::SetItem (int _index, MTitem * _item, MTList * _list)
int
CmpPthreadObj (void *_i, void *_value)
{
return ( (MTitem *) _i)->Id () == * (int *) _value;
return ((MTitem *) _i)->Id () == *(int *) _value;
};
int
CmpThreadId (void *_i, void *_id)
{
return ( (ThreadItem *) _i)->thread_id == * (DWORD *) _id;
return ((ThreadItem *) _i)->thread_id == * (DWORD *) _id;
};
void