1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-12-08 04:56:35 +01:00

Revert "Merge branch 'Ansa89-add_translation'"

This reverts commit 312d0c3f42, reversing
changes made to 409e4ddd96.
This commit is contained in:
Jfreegman
2015-07-08 21:08:55 -04:00
parent 84a0276668
commit 40b220c821
37 changed files with 441 additions and 5550 deletions

View File

@@ -28,12 +28,6 @@
#include <dirent.h>
#include <sys/stat.h>
#ifdef NO_GETTEXT
#define gettext(A) (A)
#else
#include <libintl.h>
#endif
#include "toxic.h"
#include "windows.h"
#include "misc_tools.h"
@@ -237,7 +231,7 @@ size_t get_file_name(char *namebuf, size_t bufsize, const char *pathname)
char *path = strdup(pathname);
if (path == NULL)
exit_toxic_err(gettext("failed in get_file_name"), FATALERR_MEMORY);
exit_toxic_err("failed in get_file_name", FATALERR_MEMORY);
while (len >= 0 && pathname[len] == '/')
path[len--] = '\0';
@@ -245,7 +239,7 @@ size_t get_file_name(char *namebuf, size_t bufsize, const char *pathname)
char *finalname = strdup(path);
if (finalname == NULL)
exit_toxic_err(gettext("failed in get_file_name"), FATALERR_MEMORY);
exit_toxic_err("failed in get_file_name", FATALERR_MEMORY);
const char *basenm = strrchr(path, '/');