forked from enlightenment/efl
parent
fcb71a4b3b
commit
cc5e332525
|
@ -806,6 +806,7 @@ is_num(int n)
|
|||
{
|
||||
char *str;
|
||||
char *end;
|
||||
long val;
|
||||
|
||||
str = eina_list_nth(params, n);
|
||||
if (!str)
|
||||
|
@ -816,7 +817,7 @@ is_num(int n)
|
|||
}
|
||||
if (str[0] == 0) return 0;
|
||||
end = str;
|
||||
strtol(str, &end, 0);
|
||||
val = strtol(str, &end, 0);
|
||||
if ((end != str) && (end[0] == 0)) return 1;
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
#include <locale.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <errno.h>
|
||||
|
||||
|
||||
#include <Ecore_File.h>
|
||||
|
@ -305,7 +306,8 @@ output(void)
|
|||
exit (-1);
|
||||
}
|
||||
f = fopen(out, "wb");
|
||||
fwrite(font, fontsize, 1, f);
|
||||
if (fwrite(font, fontsize, 1, f) != 1)
|
||||
ERR("Could not write font: %s", strerror(errno));
|
||||
fclose(f);
|
||||
free(font);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue