summaryrefslogtreecommitdiff
path: root/src/video_out/libdha/mtrr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/video_out/libdha/mtrr.c')
-rw-r--r--src/video_out/libdha/mtrr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_out/libdha/mtrr.c b/src/video_out/libdha/mtrr.c
index 4878c2284..48ae5a1fd 100644
--- a/src/video_out/libdha/mtrr.c
+++ b/src/video_out/libdha/mtrr.c
@@ -80,7 +80,7 @@ int mtrr_set_type(unsigned base,unsigned size,int type)
char sout[256];
unsigned wr_len;
sprintf(sout,"base=0x%08X size=0x%08X type=%s\n",base,size,stype);
- wr_len = fprintf(mtrr_fd,sout);
+ wr_len = fprintf(mtrr_fd,"%s",sout);
/*printf("MTRR: %s\n",sout);*/
fclose(mtrr_fd);
return wr_len == strlen(sout) ? 0 : EPERM;