Merge pull request #618 from iij/pr-generator-off-by-one

fix an off-by-one error in mrbgems generator.
This commit is contained in:
Yukihiro "Matz" Matsumoto
2012-12-10 21:12:22 -08:00
+3 -2
View File
@@ -60,8 +60,9 @@ static char
* String which will be the replacement
*
*/
static char
*replace(const char *s, const char *old, const char *new)
static char *
replace(const char *s, const char *old, const char *new)
{
char *ret;
int i, count = 0;