- zeroed out a variable before strcat()'ing! :)

- removed a rogue debug printf().
This commit is contained in:
2004-04-21 19:03:22 +00:00
parent 282d063569
commit 0d0ab24e4a

View File

@@ -237,9 +237,8 @@ void start_interface_font(void) {
strncpy(U.fontname, tstr, 255);
#elif defined (WIN32)
strcat(tstr, BLI_gethome());
strcpy(tstr, BLI_gethome());
strcat(tstr, "/.bfont.ttf\0");
printf("path: %s\n", tstr);
result = FTF_SetFont(tstr, U.fontsize);
sprintf(U.fontname, "/.bfont.ttf\0");