Sophie

Sophie

distrib > Mandriva > 2009.1 > i586 > media > main-release-src > by-pkgid > b0f7d2c796fc85196e75f60f6883b9fd > files > 4

openal-0.0.8-10mdv2009.1.src.rpm

--- openal-0.0.8/src/al_config.c.str	2009-04-11 08:10:30.000000000 +0200
+++ openal-0.0.8/src/al_config.c	2009-04-11 08:10:53.000000000 +0200
@@ -1243,14 +1243,14 @@
         else if (is_string(foo))
         {
 		retval->type = ALRC_STRING;
-		snprintf( retval->data.str.c_str, ALRC_MAXSTRLEN, &foo[1] );
+		snprintf( retval->data.str.c_str, ALRC_MAXSTRLEN, "%s", &foo[1] );
 
 		retval->data.str.len = strlen( foo ) - 2;
 	}
         else
         {
 		retval->type = ALRC_SYMBOL;
-		snprintf( retval->data.str.c_str, ALRC_MAXSTRLEN, foo );
+		snprintf( retval->data.str.c_str, ALRC_MAXSTRLEN, "%s", foo );
 
 		retval->data.str.len = strlen( foo );
 	}