git-svn: trunk@3062
remotes/push_mirror/metadata
Nigel Horne 18 years ago
parent 8fb8d069b0
commit 311286ab71
  1. 4
      ChangeLog
  2. 14
      libclamav/blob.c

@ -1,3 +1,7 @@
Fri May 25 10:33:19 BST 2007 (njh)
----------------------------------
* libclamav/blob.c: Bug 520
Wed May 23 15:30:32 CEST 2007 (tk)
----------------------------------
* libclamav: DCONF support for NSIS

@ -242,7 +242,7 @@ blobGetData(const blob *b)
if(b->len == 0)
return NULL;
return(b->data);
return b->data;
}
size_t
@ -251,7 +251,7 @@ blobGetDataSize(const blob *b)
assert(b != NULL);
assert(b->magic == BLOBCLASS);
return(b->len);
return b->len;
}
void
@ -574,9 +574,15 @@ sanitiseName(char *name)
#ifdef C_DARWIN
*name &= '\177';
#endif
/* Also check for tab - "Heinz Martin" <Martin@hemag.ch> */
#if defined(MSDOS) || defined(C_CYGWIN) || defined(C_WINDOWS) || defined(C_OS2)
/* Also check for tab - "Heinz Martin" <Martin@hemag.ch> */
#if defined(MSDOS) || defined(C_OS2)
/*
* Don't take it from this that ClamAV supports DOS, it doesn't
* I don't know if spaces are legal in OS/2.
*/
if(strchr("%/*?<>|\\\"+=,;:\t ~", *name))
#elif defined(C_CYGWIN) || defined(C_WINDOWS)
if(strchr("%/*?<>|\\\"+=,;:\t~", *name))
#else
if(*name == '/')
#endif

Loading…
Cancel
Save