diff --git a/spa/include/spa/pod/parser.h b/spa/include/spa/pod/parser.h index b6a36e6f5..c0a3099da 100644 --- a/spa/include/spa/pod/parser.h +++ b/spa/include/spa/pod/parser.h @@ -364,6 +364,7 @@ do { \ char *dest = va_arg(args, char*); \ uint32_t maxlen = va_arg(args, uint32_t); \ strncpy(dest, (char *)SPA_POD_CONTENTS(struct spa_pod_string, pod), maxlen-1); \ + dest[maxlen-1] = '\0'; \ break; \ } \ case 'y': \