Peter Korsgaard | e888cd4 | 2009-03-05 15:30:57 +0000 | [diff] [blame] | 1 | [PATCH] replace susv3 legacy functions with modern equivalents |
| 2 | |
| 3 | Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk> |
| 4 | --- |
| 5 | syslog.c | 2 +- |
| 6 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 7 | |
| 8 | Index: sysklogd-1.4.1/syslog.c |
| 9 | =================================================================== |
| 10 | --- sysklogd-1.4.1.orig/syslog.c |
| 11 | +++ sysklogd-1.4.1/syslog.c |
| 12 | @@ -178,7 +178,7 @@ |
| 13 | return; |
| 14 | (void)strcat(tbuf, "\r\n"); |
| 15 | cnt += 2; |
| 16 | - p = index(tbuf, '>') + 1; |
| 17 | + p = strchr(tbuf, '>') + 1; |
| 18 | (void)write(fd, p, cnt - (p - tbuf)); |
| 19 | (void)close(fd); |
| 20 | } |