* Please see COPYING for details
*
* Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
- * Copyright (c) 2005-2009 Brenden Matthews, Philip Kovacs, et. al.
+ * Copyright (c) 2005-2010 Brenden Matthews, Philip Kovacs, et. al.
* (see AUTHORS)
* All rights reserved.
*
if (!(*p))
break;
- if (strncmp(p, "$template", 9) && strncmp(p, "${template", 10)) {
+ if (strncmp(p, "$template", strlen("$template")) && strncmp(p, "${template", strlen("${template"))) {
*(o++) = *(p++);
continue;
}
}
} else {
templ = p + 1;
- while (*p && !isspace(*p))
+ p += strlen("$template");
+ while (*p && isdigit(*p))
p++;
args = NULL;
}