Browse Source

- re fixes

Andrei Pelinescu-Onciul 22 years ago
parent
commit
e41bdf13b4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      re.c

+ 1 - 1
re.c

@@ -422,7 +422,7 @@ struct replace_lst* subst_run(struct subst_expr* se, char* input,
 				LOG(L_ERR, "ERROR: subst_run: out of mem (crt)\n");
 				goto error;
 			}
-			memset(*crt, sizeof(struct replace_lst), 0);
+			memset(*crt, 0, sizeof(struct replace_lst));
 			if (pmatch[0].rm_so==-1){
 				LOG(L_ERR, "ERROR: subst_run: unknown offset?\n");
 				goto error;