diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-10-09 10:03:38 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-10-09 10:03:38 +0400 |
commit | 8714fb7019e853703ce8b102edac43d84b7bbe14 (patch) | |
tree | ef8993afe8cfdecf21ddead6b4c1c4152bc084f5 /source/blender/blenlib/intern/winstuff.c | |
parent | 6778f7ae056bcf529820ea3fc8238dda0473eb33 (diff) |
replace sprintf with strcpy where no formatting is done and return value isn't used.
Diffstat (limited to 'source/blender/blenlib/intern/winstuff.c')
-rw-r--r-- | source/blender/blenlib/intern/winstuff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/winstuff.c b/source/blender/blenlib/intern/winstuff.c index bf816a91fb3..3b14abb0bee 100644 --- a/source/blender/blenlib/intern/winstuff.c +++ b/source/blender/blenlib/intern/winstuff.c @@ -109,7 +109,7 @@ void RegisterBlendExtension(void) { lresult = RegCreateKeyEx(root, "blendfile", 0, NULL, REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL, &hkey, &dwd); if (lresult == ERROR_SUCCESS) { - sprintf(buffer,"%s","Blender File"); + strcpy(buffer,"Blender File"); lresult = RegSetValueEx(hkey, NULL, 0, REG_SZ, (BYTE*)buffer, strlen(buffer) + 1); RegCloseKey(hkey); } |