| 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 |
| r11398 | r11399 | |
|---|---|---|
| 280 | 280 | return dst; |
| 281 | 281 | |
| 282 | 282 | /* copy the raw data and NULL-terminate */ |
| 283 | if (count > 0) | |
| 283 | if ((count > 0) && (dst->text != src)) | |
| 284 | 284 | memcpy(dst->text, src, count); |
| 285 | 285 | dst->text[count] = 0; |
| 286 | 286 | return dst; |
| Previous | 15994 Revisions | Next |