X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=ssplit.c;h=ef40e64492e8698e7e10dcd30b934e203be21478;hp=348f535436bd1485259df5f8e1719d4613616076;hb=f5c1a886b7ae20da7eafb77926252eb521260728;hpb=79472df0141f472a2f5cc333d91d4bbbd015b765 diff --git a/ssplit.c b/ssplit.c index 348f5354..ef40e644 100644 --- a/ssplit.c +++ b/ssplit.c @@ -1,12 +1,11 @@ -const char ssplit_rcs[] = "$Id: ssplit.c,v 1.17 2012/07/23 12:44:30 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/ssplit.c,v $ * * Purpose : A function to split a string at specified delimiters. * - * Copyright : Written by and Copyright (C) 2001 the SourceForge - * Privoxy team. http://www.privoxy.org/ + * Copyright : Written by and Copyright (C) 2001-2012 the + * Privoxy team. https://www.privoxy.org/ * * Based on the Internet Junkbuster originally written * by and Copyright (C) 1997 Anonymous Coders and @@ -37,12 +36,11 @@ const char ssplit_rcs[] = "$Id: ssplit.c,v 1.17 2012/07/23 12:44:30 fabiankeil E #include #include +#include #include "ssplit.h" #include "miscutil.h" -const char ssplit_h_rcs[] = SSPLIT_H_VERSION; - /********************************************************************* * @@ -152,6 +150,8 @@ int ssplit(char *str, const char *delim, char *vec[], size_t vec_len) } } /* null terminate the substring */ + /* XXX: this shouldn't be necessary, so assert that it isn't. */ + assert(*str == '\0'); *str = '\0'; return(vec_count);