#include "md5-util.h"
#include "filefilter.h"
+#include "secure_save.h"
+
/*
*-----------------------------------------------------------------------------
* generic file information and manipulation routines (public)
text_l = g_locale_from_utf8(text_utf8, -1, NULL, NULL, NULL);
fputs((text_l) ? text_l : text_utf8, stderr);
+ if(command_line && command_line->ssi)
+ secure_fputs(command_line->ssi, (text_l) ? text_l : text_utf8);
g_free(text_l);
}
gchar *remove_extension_from_path(const gchar *path)
{
+ const gchar *reg_ext;
+
if (!path) return NULL;
- return g_strndup(path, strlen(path)-strlen(registered_extension_from_path(path)));
+
+ reg_ext = registered_extension_from_path(path);
+
+ return g_strndup(path, strlen(path) - (reg_ext == NULL ? 0 : strlen(reg_ext)));
}
void parse_out_relatives(gchar *path)