Re: This has got me stumped

From: Chris Powell (darkness@AGEOFWAR.ORG)
Date: 11/07/97


Here is the offending code

int get_from_q(struct txt_q *queue, char *dest, int *aliased)
{
  struct txt_block *tmp;

  /* queue empty? */
  if (!queue->head)
    return 0;

  tmp = queue->head;
  strcpy(dest, queue->head->text);
  *aliased = queue->head->aliased;
  queue->head = queue->head->next;

969->  free(tmp->text);
  free(tmp);

  return 1;
}


  ___          _      _
/  _  \   _   / \    / \   Age Of War
| |_| |  / \  | |    | |   Telnet: ageofwar.org 4000
|  _  | | O | | \_/\_/ |   Web page: www.ageofwar.org/~aow
|_| |_|  \_/  \___/\___/   Email: darkness@ageofwar.org


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/08/00 PST