Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/editors/space_file/filesel.c')
-rw-r--r--source/blender/editors/space_file/filesel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_file/filesel.c b/source/blender/editors/space_file/filesel.c
index 19947a9ffc9..69888105713 100644
--- a/source/blender/editors/space_file/filesel.c
+++ b/source/blender/editors/space_file/filesel.c
@@ -396,7 +396,7 @@ float file_shorten_string(char *string, float w, int front)
sw = file_string_width(string);
if (front == 1) {
- char *s = string;
+ const char *s = string;
BLI_strncpy(temp, "...", 4);
pad = file_string_width(temp);
while ((*s) && (sw + pad > w)) {
@@ -412,7 +412,7 @@ float file_shorten_string(char *string, float w, int front)
}
}
else {
- char *s = string;
+ const char *s = string;
while (sw > w) {
int slen = strlen(string);
string[slen - 1] = '\0';