~user/ should expand to user's home dir, but it expands to the current users home dir with 'user' stuck on the end.
Logged In: YES user_id=5012
The memmove() line of your patch could read beyond the bounary of 'file' (when the strchr doesn't fail).
Logged In: YES user_id=29056
thanks! here's an updated patch...
user = strchr(file, ',') != NULL ? strchr(file,'/') : file;
Why check for a comma? Seems like a mistake to me.
right again, this was at 7am, sorry! version 3...
patch 3
Ok, now commited to cvs, thanks.
Log in to post a comment.
Logged In: YES
user_id=5012
The memmove() line of your patch could read beyond the
bounary of 'file'
(when the strchr doesn't fail).
Logged In: YES
user_id=29056
thanks! here's an updated patch...
Logged In: YES
user_id=5012
user = strchr(file, ',') != NULL ? strchr(file,'/') : file;
Why check for a comma? Seems like a mistake to me.
Logged In: YES
user_id=29056
right again, this was at 7am, sorry! version 3...
patch 3
Logged In: YES
user_id=5012
Ok, now commited to cvs, thanks.