commit 6ec89fc3d5859daac5a7600ee30d8106f694f7fc
parent baec3235fc9819da97604ce7bc6056dea4e11584
Author: FRIGN <dev@frign.de>
Date: Sat, 3 May 2014 16:45:29 +0200
typo
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/soap.c b/soap.c
@@ -16,7 +16,7 @@ main(int argc, char *argv[]){
char cmd[BUFSIZ], sharg[BUFSIZ];
regex_t regex;
- /* we only take on argument */
+ /* we only take one argument */
if (argc != 2)
return EXIT_FAILURE;
@@ -40,7 +40,7 @@ main(int argc, char *argv[]){
/* check regex and launch action if it matches argv[1] */
for (i=0; i < sizeof(pairs)/sizeof(*pairs); ++i) {
if (regcomp(®ex, pairs[i].regex, REG_EXTENDED))
- fprintf(stderr, "Invalid regex: %s\n", pairs[i].regex);
+ fprintf(stderr, "invalid regex: %s\n", pairs[i].regex);
if (!regexec(®ex, argv[1], 0, NULL, 0)) {
snprintf(cmd, sizeof cmd, pairs[i].action, sharg);
system(cmd);