Changeset 720 for libcaca


Ignore:
Timestamp:
Apr 6, 2006, 12:23:10 PM (15 years ago)
Author:
Sam Hocevar
Message:
  • Fixed a crash when realloc() returns a new address.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/src/cacaserver.c

    r718 r720  
    216216
    217217        size = 12 + width * height * 5 + 4;
    218         server->input = realloc(server->input, size);
     218        buf = server->input = realloc(server->input, size);
    219219        read(0, buf + 12, size - 12);
    220220
Note: See TracChangeset for help on using the changeset viewer.