2007-04-25 07:32:55 -04:00
|
|
|
$OpenBSD: patch-WINGs_string_c,v 1.4 2007/04/25 11:32:55 wilfried Exp $
|
|
|
|
--- WINGs/string.c.orig Tue Oct 12 20:32:12 2004
|
|
|
|
+++ WINGs/string.c Thu Mar 15 20:00:31 2007
|
2002-01-04 17:40:02 -05:00
|
|
|
@@ -1,6 +1,6 @@
|
|
|
|
|
|
|
|
#include "wconfig.h"
|
2001-08-01 05:04:41 -04:00
|
|
|
-
|
|
|
|
+#include <assert.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <ctype.h>
|
2007-04-25 07:32:55 -04:00
|
|
|
@@ -153,7 +153,7 @@ wtokenjoin(char **list, int count)
|
|
|
|
void
|
|
|
|
wtokenfree(char **tokens, int count)
|
|
|
|
{
|
|
|
|
- while (--count) wfree(tokens[count]);
|
|
|
|
+ while (count--) wfree(tokens[count]);
|
|
|
|
wfree(tokens);
|
|
|
|
}
|
|
|
|
|