projects
/
platform
/
upstream
/
pulseaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a08d733
)
Trivial change to allocate memory using pulse methods.
author
Colin Guthrie
<pulse@colin.guthr.ie>
Tue, 6 May 2008 00:14:33 +0000
(
00:14
+0000)
committer
Colin Guthrie
<pulse@colin.guthr.ie>
Wed, 8 Oct 2008 19:32:06 +0000
(20:32 +0100)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2364
fefdeb5f
-60dc-0310-8127-
8f9354f1896f
src/modules/rtp/base64.c
patch
|
blob
|
history
diff --git
a/src/modules/rtp/base64.c
b/src/modules/rtp/base64.c
index
ec9f221
..
043ef5a
100644
(file)
--- a/
src/modules/rtp/base64.c
+++ b/
src/modules/rtp/base64.c
@@
-33,6
+33,8
@@
#include <stdlib.h>
#include <string.h>
+#include <pulse/xmalloc.h>
+
#include "base64.h"
static char base64_chars[] =
@@
-54,9
+56,7
@@
int pa_base64_encode(const void *data, int size, char **str)
int c;
const unsigned char *q;
- p = s = (char *) malloc(size * 4 / 3 + 4);
- if (p == NULL)
- return -1;
+ p = s = pa_xnew(char, size * 4 / 3 + 4);
q = (const unsigned char *) data;
i = 0;
for (i = 0; i < size;) {