Changeset 181ea08


Ignore:
Timestamp:
Feb 28, 2010, 9:55:08 PM (10 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.6, release-1.7, release-1.8, release-1.9
Children:
ce5d181
Parents:
18fb86ee
git-author:
Anders Kaseorg <andersk@mit.edu> (02/28/10 16:41:01)
git-committer:
Anders Kaseorg <andersk@mit.edu> (02/28/10 21:55:08)
Message:
owl_command_aimwrite: Fix a buffer overflow on aimwrite -m.

I’ve tested that this works at least as well as the old code.  There’s
still something wrong here because aimwrite concatenates its arguments
to get the screenname and aimwrite -m doesn’t, but I don’t care
anymore because libfaim is going away (right?  RIGHT?).

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Reviewed-by: Sam Hartman <hartmans@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • commands.c

    r2a17b63 r181ea08  
    19211921        newbuff[strlen(newbuff) - 1] = '\0'; /* remove last space */
    19221922
    1923       recip=owl_malloc(strlen(argv[0])+5);
    1924       sprintf(recip, "%s ", argv[1]);
     1923      recip=owl_strdup(argv[1]);
    19251924      owl_aim_send_im(recip, newbuff);
    19261925      m=owl_function_make_outgoing_aim(newbuff, recip);
Note: See TracChangeset for help on using the changeset viewer.