diff options
author | Alexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de> | 2005-02-11 10:58:34 +0000 |
---|---|---|
committer | Alexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de> | 2005-02-11 10:58:34 +0000 |
commit | 99e35e1bc2a2314a563e06328e70484d87acebdd (patch) | |
tree | 9775316f968d9b36af7da69e8bb8168cf7dce699 /pf.c | |
parent | 6ac4d1fd9c14f7cc747f4de4ebbc5c36d25a8bac (diff) |
Import changes from XORG-6.8.2CYGWIN-6_8_2-MERGECYGWIN
Diffstat (limited to 'pf.c')
-rw-r--r-- | pf.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -87,8 +87,12 @@ void process_line (buffer) int i; char *cp; - len = strlen (buffer); - + /* copy buffer since it may point to unwritable date */ + len = strlen(buffer); + cp = chk_malloc(len + 1); + strcpy(cp, buffer); + buffer = cp; + for (i = 0; i < len; i++) { /* look for blank lines */ register char c = buffer[i]; if (!(isspace(c) || c == '\n')) break; |