[hackers] [sbase] uudecode: dont return pointer to local variable || Hiltjo Posthuma

From: <git_AT_suckless.org>
Date: Tue, 1 Mar 2016 16:24:36 +0100 (CET)

commit a51b01ff90abba93a98f6d962500fcc956bdac2e
Author: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
AuthorDate: Tue Mar 1 12:43:06 2016 +0100
Commit: sin <sin_AT_2f30.org>
CommitDate: Tue Mar 1 15:24:32 2016 +0000

    uudecode: dont return pointer to local variable

diff --git a/uudecode.c b/uudecode.c
index eca9727..28e9147 100644
--- a/uudecode.c
+++ b/uudecode.c
_AT_@ -38,7 +38,7 @@ tropen:
 static void
 parseheader(FILE *fp, const char *s, char **header, mode_t *mode, char **fname)
 {
- char bufs[PATH_MAX + 18]; /* len header + mode + maxname */
+ static char bufs[PATH_MAX + 18]; /* len header + mode + maxname */
         char *p, *q;
         size_t n;
 
Received on Tue Mar 01 2016 - 16:24:36 CET

This archive was generated by hypermail 2.3.0 : Tue Mar 01 2016 - 16:36:14 CET