Previous 15994 Revisions Next

r11399 Sunday 1st May, 2011 at 01:00:57 UTC by R. Belmont
astring: don't copy a string onto itself, that's dumb (but the image device handling does it a lot) (no whatsnew)
[src/lib/util]astring.c

src/lib/util/astring.c
r11398r11399
280280      return dst;
281281
282282   /* copy the raw data and NULL-terminate */
283   if (count > 0)
283   if ((count > 0) && (dst->text != src))
284284      memcpy(dst->text, src, count);
285285   dst->text[count] = 0;
286286   return dst;

Previous 15994 Revisions Next


© 1998-2018 The MESS Team