]> code.delx.au - pulseaudio/blobdiff - src/pulsecore/strbuf.c
core-util: ensure that we chmod only the dir we ourselves created
[pulseaudio] / src / pulsecore / strbuf.c
index 9f5a84b47a4c009ef947b582f66cc1b00ace6793..4fc82ded2ee5ff02c6e87ef65cd0fac2e9f247fa 100644 (file)
@@ -113,6 +113,13 @@ void pa_strbuf_puts(pa_strbuf *sb, const char *t) {
     pa_strbuf_putsn(sb, t, strlen(t));
 }
 
+/* Append a character to the string buffer */
+void pa_strbuf_putc(pa_strbuf *sb, char c) {
+    pa_assert(sb);
+
+    pa_strbuf_putsn(sb, &c, 1);
+}
+
 /* Append a new chunk to the linked list */
 static void append(pa_strbuf *sb, struct chunk *c) {
     pa_assert(sb);