openbsd-ports/audio/opennap/patches/patch-resume_c

25 lines
659 B
Plaintext
Raw Normal View History

$OpenBSD: patch-resume_c,v 1.1 2002/08/10 01:14:04 naddy Exp $
--- resume.c.orig Tue Mar 6 00:49:53 2001
+++ resume.c Mon Oct 1 12:06:34 2001
@@ -17,8 +17,8 @@ HANDLER (resume)
{
#if RESUME
char *av[2];
- FLIST *flist;
- LIST *ptr;
+ FileList *flist;
+ DList *ptr;
DATUM *d;
int fsize;
#endif /* RESUME */
@@ -41,6 +41,9 @@ HANDLER (resume)
send_cmd (con, MSG_SERVER_NOSUCH, "invalid file size");
return;
}
+
+ /* md5 value is stored using all lowercase hex */
+ strlower (av[0]);
/* search the database for a list of all files which match this hash */
flist = hash_lookup (MD5, av[0]);