patch-index_region_c 755 B

123456789101112131415161718192021222324252627282930
  1. $OpenBSD: patch-index_region_c,v 1.2 2017/05/07 21:41:51 stu Exp $
  2. Index: index/region.c
  3. --- index/region.c.orig
  4. +++ index/region.c
  5. @@ -1,6 +1,7 @@
  6. /* Copyright (c) 1994 Sun Wu, Udi Manber, Burra Gopal. All Rights Reserved. */
  7. /* From mail received from Bill Camargo and Darren Hardy in June 1994 */
  8. #include <stdio.h>
  9. +#include <string.h>
  10. #include "region.h"
  11. /*
  12. @@ -168,6 +169,7 @@ attr_free_table()
  13. }
  14. /* Looks for embedded attributes and copies the real attribute into dest */
  15. +void
  16. attr_extract(dest, src)
  17. char *dest, *src;
  18. {
  19. @@ -464,7 +466,7 @@ region_destroy()
  20. while (rl != NULL) {
  21. trl = rl;
  22. rl = rl->next;
  23. - free(trl, sizeof(region_t));
  24. + my_free(trl, sizeof(region_t));
  25. }
  26. current_regions = nextpos = NULL;
  27. return 0;