- Fix build with gcc 4.1

Submitted by:	maintainer
This commit is contained in:
Sergey Matveychuk 2007-04-02 13:50:21 +00:00
parent 00c08d3487
commit eef24d48e9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=189008

View file

@ -9,3 +9,14 @@
#include <poll.h>
#include <radlib.h>
#include <radlib_vs.h>
--- ppp/ppp_auth_radius.c.orig Sun Apr 1 23:13:10 2007
+++ ppp/ppp_auth_radius.c Sun Apr 1 23:16:01 2007
@@ -462,7 +462,7 @@
/* Compensate for broken servers that leave out the ID byte */
if (len > 0 && (len < 3 || ((const char *)data)[1] != '=')) {
- ((const char *)data)++;
+ data = (const char *)data + 1;
len--;
}