Changeset 1c6c4d3 for owl.c


Ignore:
Timestamp:
Jun 30, 2002, 4:58:09 PM (19 years ago)
Author:
Erik Nygren <nygren@mit.edu>
Branches:
master, barnowl_perlaim, debian, owl, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
507d5aa
Parents:
262422c
Message:
	Added owl_sprintf which returns the formatted string, or NULL.
	        The caller must free this string.
		This will allocate enough memory and thus
		avoid potential some buffer overrun situations.
	Started fixing some potential buffer overrun situations.
	Simple implementation of 'zwrite -m' (doesn't yet log an outgoing
	        message as having been sent.)
	The "Not logged in or subscribing to messages" error
	        now includes the name of the recipient.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • owl.c

    r1aee7d9 r1c6c4d3  
    273273      /* this is an unsupported feature */
    274274      if (owl_global_is_burningears(&g) && owl_message_is_burningears(m)) {
    275         char buff[LINE];
    276         sprintf(buff, "@i(Burning ears message on class %s)", owl_message_get_class(m));
     275        char *buff;
     276        buff = owl_sprintf("@i(Burning ears message on class %s)", owl_message_get_class(m));
    277277        /* owl_function_makemsg(buff); */
    278278        owl_function_adminmsg(buff, "");
     279        owl_free(buff);
    279280        owl_function_beep();
    280281      }
Note: See TracChangeset for help on using the changeset viewer.