aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-12-02 01:12:49 -0800
committerChris Robinson <[email protected]>2010-12-02 01:12:49 -0800
commit3339e5dc6ac0f74474565775a736460dac7c4de1 (patch)
tree08c2840974c64f12bf77a85c98ca7d3f7e8b8c21
parent30b3f68ddfb3f99b9a03d4785137082d8abe63a8 (diff)
Use memcpy to copy a string instead of sprintf
-rw-r--r--Alc/ALc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index a0fce4ec..a3992491 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -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; \
}