cnf_stuff.c:169: warning: function returns address of local variable

This commit is contained in:
Joerg Wunsch 1996-02-05 21:29:55 +00:00
parent 612c4964a4
commit a2ca89808a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=2677

View File

@ -0,0 +1,11 @@
--- until/V1.2/cnf_stuff.c.orig Mon Feb 5 21:12:59 1996
+++ until/V1.2/cnf_stuff.c Mon Feb 5 21:08:08 1996
@@ -147,7 +147,7 @@
Local char *getPlainWord(cnfBuf *cb)
{
/* return the next word */
- char s[256];
+ static char s[256];
long p;
skip_blanks(cb);