Changeset 7793bdcbd3a77917c4dec40c737a8b04017430c5
- Timestamp:
- 05/10/08 22:22:19
(2 months ago)
- Author:
- Rémi Denis-Courmont <rem@videolan.org>
- git-committer:
- Rémi Denis-Courmont <rem@videolan.org> 1210450939 +0300
- git-parent:
[b855dc8d8261eeb21f6eb7db770768701dea98d9]
- git-author:
- Rémi Denis-Courmont <rem@videolan.org> 1210449511 +0300
- Message:
Simplification
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rb855dc8 |
r7793bdc |
|
| 651 | 651 | else |
|---|
| 652 | 652 | { |
|---|
| 653 | | char *psz_old = malloc( strlen( p_ctx->psz_message ) + 1 ); |
|---|
| 654 | | memcpy( psz_old, p_ctx->psz_message, strlen( p_ctx->psz_message ) + 1 ); |
|---|
| 655 | | p_ctx->psz_message = realloc( p_ctx->psz_message, |
|---|
| 656 | | strlen( p_ctx->psz_message ) + |
|---|
| 657 | | /* ':', ' ', '0' */ |
|---|
| 658 | | strlen( psz_tmp ) + 3 ); |
|---|
| 659 | | sprintf( p_ctx->psz_message, "%s: %s", psz_tmp, psz_old ); |
|---|
| 660 | | free( psz_tmp ); free( psz_old ); |
|---|
| | 653 | char *psz_new; |
|---|
| | 654 | if( asprintf( &psz_new, "%s: %s", psz_tmp, p_ctx->psz_message ) == -1 ) |
|---|
| | 655 | psz_new = NULL; |
|---|
| | 656 | |
|---|
| | 657 | free( p_ctx->psz_message ); |
|---|
| | 658 | p_ctx->psz_message = psz_new; |
|---|
| | 659 | free( psz_tmp ); |
|---|
| 661 | 660 | } |
|---|
| 662 | 661 | } |
|---|