summaryrefslogtreecommitdiffabout
path: root/src
authorSergey Poznyakoff <gray@gnu.org>2013-12-17 21:43:29 (GMT)
committer Sergey Poznyakoff <gray@gnu.org>2013-12-17 21:43:29 (GMT)
commit57a00b140954a2c22ba2fdebc93e8e6eda41b2a3 (patch) (side-by-side diff)
treeacd100103525ce5dc67e1a4f8e8b92221002cc2c /src
parente49108f9be4ffe6242abc8af13b1dc6b3853c9bf (diff)
downloadgrecs-57a00b140954a2c22ba2fdebc93e8e6eda41b2a3.tar.gz
grecs-57a00b140954a2c22ba2fdebc93e8e6eda41b2a3.tar.bz2
One more fix.
* src/opthelp.c (grecs_print_usage): Fix buffer offset
Diffstat (limited to 'src') (more/less context) (ignore whitespace changes)
-rw-r--r--src/opthelp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opthelp.c b/src/opthelp.c
index e4a527a..25d9772 100644
--- a/src/opthelp.c
+++ b/src/opthelp.c
@@ -413,7 +413,7 @@ grecs_print_usage(struct grecs_proginfo *pinfo)
}
}
buf[n++] = ' ';
- strcpy(buf, ws.ws_wordv[i]);
+ strcpy(buf + n, ws.ws_wordv[i]);
n += len;
}
}

Return to:

Send suggestions and report system problems to the System administrator.