From 8d1769e20b14e0b20b8d6024517dd5a98fe5ae08 Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Tue, 7 Oct 2008 17:36:01 +0000 Subject: [PATCH] fixed audio device string printing git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2867 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/sound.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/src/sound.cpp b/source/src/sound.cpp index bcb0d130..9190b92b 100644 --- a/source/src/sound.cpp +++ b/source/src/sound.cpp @@ -1309,12 +1309,13 @@ void initsound() if(devices) { string d; - s_strcpy(d, "Audio devices:"); + s_strcpy(d, "Audio devices: "); // null separated device string for(const ALchar *c = devices; c[strlen(c)+1]; c += strlen(c)+1) { - s_sprintf(d)("%s%c%s", d, c==devices ? ' ' : ',' , c); + if(c!=devices) s_strcat(d, ", "); + s_strcat(d, c); } conoutf(d); }