aboutsummaryrefslogtreecommitdiffstats
path: root/com32/gpllib/disk/error.c
diff options
context:
space:
mode:
Diffstat (limited to 'com32/gpllib/disk/error.c')
-rw-r--r--com32/gpllib/disk/error.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/gpllib/disk/error.c b/com32/gpllib/disk/error.c
index 5491b994..2b82c359 100644
--- a/com32/gpllib/disk/error.c
+++ b/com32/gpllib/disk/error.c
@@ -20,5 +20,5 @@
**/
void get_error(void* buffer_ptr)
{
- sprintf(buffer_ptr, "Disklib: error %d\n", errno_disk);
+ snprintf(buffer_ptr, MAX_DISK_ERRNO, "Disklib: error %d\n", errno_disk);
}