~ubuntu-branches/debian/sid/freeciv/sid

« back to all changes in this revision

Viewing changes to common/dataio.c

  • Committer: Package Import Robot
  • Author(s): Karl Goetz
  • Date: 2012-04-21 07:46:55 UTC
  • mfrom: (1.2.21)
  • Revision ID: package-import@ubuntu.com-20120421074655-uejegotqtble4xhh
Tags: 2.3.2-1
* Update to latest upstream version
* Enable build time hardening flags, thanks to Moritz M"uhlenhoff for
  assistance in this process. (Closes: #654809)
* Update to policy 3.9.3
* Amend short description of freeciv-client-extras (Closes: #656708)
* Add backporting information to README.source
* Fix dependency information to reduce chance of unwitting bugs.
* Suggest freeciv-client-extras in freeciv-client-gtk
* Change libpng build dependency away from 1.2 (Closes: #662333)
* Remove GGZ dependencies (Closes: #655399)
* Remove ggz.modules if we were the only entry. This should make the
  package piuparts clean.

Show diffs side-by-side

added added

removed removed

Lines of Context:
113
113
**************************************************************************/
114
114
static bool enough_space(struct data_out *dout, size_t size)
115
115
{
116
 
  if (ADD_TO_POINTER(dout->current, size) >=
117
 
      ADD_TO_POINTER(dout->dest, dout->dest_size)) {
 
116
  if (dout->current + size > dout->dest_size) {
118
117
    dout->too_short = TRUE;
119
118
    return FALSE;
120
119
  } else {