socktest: move buffer to static
authorAlan Cox <alan@linux.intel.com>
Sun, 13 Nov 2016 00:10:37 +0000 (00:10 +0000)
committerAlan Cox <alan@linux.intel.com>
Sun, 13 Nov 2016 00:10:37 +0000 (00:10 +0000)
Applications/util/socktest.c

index 7f235e2..95c74f6 100644 (file)
@@ -24,7 +24,7 @@ int main(int argc, char *argv[])
        int fd, fd2;
        int r;
        unsigned long t = 0;
-       char buf[512];
+       static char buf[512];
        static char line[81];
        char *lp;
        char *p;