summaryrefslogtreecommitdiff
path: root/pwdx.c
diff options
context:
space:
mode:
authorJim Warner <james.warner@comcast.net>2011-10-06 12:21:28 -0500
committerSami Kerola <kerolasa@iki.fi>2011-10-15 08:26:28 +0200
commit3f7539056347571fcda0b75f2bb49fb972c49038 (patch)
tree7def407211673e33bd61b81279f1e94fa0e9af23 /pwdx.c
parentb23baee15cb8bef5bd1b922fc63ea85b2f31848c (diff)
downloadprocps-ng-3f7539056347571fcda0b75f2bb49fb972c49038.tar.gz
redhat analysis: pwdx
Diffstat (limited to 'pwdx.c')
-rw-r--r--pwdx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pwdx.c b/pwdx.c
index bda1bf1..ac42736 100644
--- a/pwdx.c
+++ b/pwdx.c
@@ -35,7 +35,7 @@ static void version(void)
int main(int argc, char* argv[])
{
- char buf[PATH_MAX+1];
+ static char buf[PATH_MAX+1]; // null terminate string via static
regex_t re;
int i;