summary refs log tree commit diff stats
path: root/hw/misc/imx31_ccm.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/misc/imx31_ccm.c')
-rw-r--r--hw/misc/imx31_ccm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/misc/imx31_ccm.c b/hw/misc/imx31_ccm.c
index a9059bb1f7..125d4fceeb 100644
--- a/hw/misc/imx31_ccm.c
+++ b/hw/misc/imx31_ccm.c
@@ -89,7 +89,7 @@ static const char *imx31_ccm_reg_name(uint32_t reg)
     case IMX31_CCM_PDR2_REG:
         return "PDR2";
     default:
-        sprintf(unknown, "[%u ?]", reg);
+        snprintf(unknown, sizeof(unknown), "[%u ?]", reg);
         return unknown;
     }
 }