summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Bratch <l_bratch@yahoo.co.uk>2010-10-30 23:50:22 +0100
committerLuke Bratch <l_bratch@yahoo.co.uk>2010-10-30 23:50:22 +0100
commitce33c7824cdde8308d07dee35023ea4742faa109 (patch)
treeffc8e00e902f707f270ecbce8df20a6bd01a1948
parenta5a07d79a552f34b13880c9a1f9eebbdabe7dd2e (diff)
Break current macro instead of returning for file read errors in %M
-rw-r--r--blasms.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/blasms.c b/blasms.c
index 7aed511..c8127a0 100644
--- a/blasms.c
+++ b/blasms.c
@@ -307,12 +307,12 @@ int main(int argc, char *argv[]) {
if (fp == NULL) {
printf("Error opening message file.\n");
- return 1;
+ break;
}
if (fgets(line, 1024, fp) == NULL) {
printf("Error reading message file.\n");
- return 1;
+ break;
}
fclose(fp);
@@ -325,7 +325,7 @@ int main(int argc, char *argv[]) {
setname(telnum);
} else {
printf("Error, malformed message file.\n");
- return 1;
+ break;
}
replacestr(systemcmd, i, 2, telnum);