Use memcpy to copy a string instead of sprintf

This commit is contained in:
Chris Robinson
2010-12-02 01:12:49 -08:00
parent 30b3f68ddf
commit 3339e5dc6a
+1 -1
View File
@@ -603,7 +603,7 @@ void Append##type##List(const ALCchar *name) \
return; \
} \
alc##type##List = temp; \
sprintf(alc##type##List+alc##type##ListSize, "%s", name); \
memcpy(alc##type##List+alc##type##ListSize, name, len+1); \
alc##type##ListSize += len+1; \
alc##type##List[alc##type##ListSize] = 0; \
}