projects
/
claws.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8e2db5
)
Remove unchecked realloc which is unnecessary
author
Ricardo Mones
<ricardo@mones.org>
Thu, 18 Jun 2015 00:15:12 +0000
(
02:15
+0200)
committer
Ricardo Mones
<ricardo@mones.org>
Thu, 18 Jun 2015 00:15:12 +0000
(
02:15
+0200)
src/plugins/archive/archiver_gtk.c
patch
|
blob
|
history
diff --git
a/src/plugins/archive/archiver_gtk.c
b/src/plugins/archive/archiver_gtk.c
index 447de796d12725023de9d6738a8215f026d2fa78..f42181dd4b23e7d4559f7a30b65af86522ceeeff 100644
(file)
--- a/
src/plugins/archive/archiver_gtk.c
+++ b/
src/plugins/archive/archiver_gtk.c
@@
-347,10
+347,8
@@
static gchar* descriptive_file_name(
/* ensure file name is not larger than 96 chars (max file name size
* is 100 chars but reserve for .md5)
*/
- if (strlen(name) > 96) {
- name = realloc(name, 97);
+ if (strlen(name) > 96)
name[96] = 0;
- }
new_file = g_strconcat(p, "/", name, NULL);