Commits

Anonymous committed 73bb3e9

Add missing pointer dereference in font_pattern

  • Participants
  • Parent commits b47e37d

Comments (0)

Files changed (1)

 			return "could not alloc font path";
 		}
 		strncpy(*fontpath, (const char *)file, file_len);
-		fontpath[file_len] = 0;
+		(*fontpath)[file_len] = 0;
 	}
 	FcPatternDestroy(font);