Mercurial > hg > toybox
comparison lib/xregcomp.c @ 341:86e2bdb2ad66 0.0.8
Fix typo.
author | Rob Landley <rob@landley.net> |
---|---|
date | Mon, 19 Jan 2009 22:08:01 -0600 |
parents | ce6956dfc0cf |
children | 786841fdb1e0 |
comparison
equal
deleted
inserted
replaced
340:6e03d6a8df23 | 341:86e2bdb2ad66 |
---|---|
8 */ | 8 */ |
9 | 9 |
10 #include "toys.h" | 10 #include "toys.h" |
11 #include "xregcomp.h" | 11 #include "xregcomp.h" |
12 | 12 |
13 void xregcomp(regex_t *preg, char *rexec, int cflags) | 13 void xregcomp(regex_t *preg, char *regex, int cflags) |
14 { | 14 { |
15 int rc = regcomp(preg, rexec, cflags); | 15 int rc = regcomp(preg, regex, cflags); |
16 | 16 |
17 if (rc) { | 17 if (rc) { |
18 char msg[256]; | 18 char msg[256]; |
19 regerror(rc, preg, msg, 255); | 19 regerror(rc, preg, msg, 255); |
20 msg[255]=0; | 20 msg[255]=0; |