2
1

sysklogd-susv3-legacy.patch 539 B

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