path: root/parse
diff options
authorRyan Gonzalez <>2015-01-15 14:22:33 -0600
committerOri Bernstein <>2015-01-15 17:20:36 -0500
commita1b4ba658fcecd8377a075f4a4f1d6802b7ce29e (patch)
treeccf9801bec00574da3777bb56b659e0694d9e4d9 /parse
parent8ca766760e9b674fa2c6cafc1afaad445f22f9b7 (diff)
Respect outfile
I'm not sure what Myrddin's contributing guidelines are, so I'm doing things the hg-git way of sending the patch to the mailing list. This is really simple: it just actually uses outfile. If someone specifies an output file, then it will be used as the output for the object file; the output's basename will also be used for the use file and the assembler file (if -S was passed). Another patch is attached that fixes a slight logic error in the man page that confused me very much. :)
Diffstat (limited to 'parse')
1 files changed, 2 insertions, 2 deletions
diff --git a/parse/util.c b/parse/util.c
index b43ee43..9b3b29e 100644
--- a/parse/util.c
+++ b/parse/util.c
@@ -385,7 +385,7 @@ char *swapsuffix(char *buf, size_t sz, char *s, char *suf, char *swap)
/* if we have matching suffixes */
if (suflen < slen && !strcmp(suf, &s[slen - suflen])) {
strncat(buf, s, slen - suflen);
- strncat(buf, swap, suflen);
+ strncat(buf, swap, swaplen);
} else {
snprintf(buf, sz, "%s%s", s, swap);
@@ -433,7 +433,7 @@ void findentf(FILE *fd, int depth, char *fmt, ...)
-void vfindentf(FILE *fd, int depth, char *fmt, va_list ap)
+void vfindentf(FILE *fd, int depth, char *fmt, va_list ap)
ssize_t i;