1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-06-23 21:45:30 +00:00

styling changes and remove temporary comment

This commit is contained in:
Will Song 2015-11-24 17:58:55 -06:00
parent d4e0be7176
commit b2bc69f926
No known key found for this signature in database
GPG Key ID: F2B1A34F21A171E2

View File

@ -799,7 +799,7 @@ cmd_script(ProfWin *window, const char *const command, gchar **args)
/* escape a string into csv and write it to the file descriptor */
static int
writecsv(int fd, const char *const str){
_writecsv(int fd, const char *const str){
if(!str) return 0;
size_t len = strlen(str);
char *s = malloc(2 * len * sizeof(char));
@ -821,8 +821,6 @@ gboolean
cmd_export(ProfWin *window, const char *const command, gchar **args)
{
if(args[0]){
/* temporary, we SHOULD pass everything to an escape function (to escape out quotes)
* and then use fputs */
int fd = open(args[0], O_WRONLY | O_CREAT, 00600);
GSList *list = NULL;