From 027fa2a7005a475154a344cf0a886e8b9d3962de Mon Sep 17 00:00:00 2001 From: James Booth Date: Mon, 23 Mar 2015 23:42:04 +0000 Subject: Fixed tabs --- src/pgp/gpg.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'src/pgp/gpg.c') diff --git a/src/pgp/gpg.c b/src/pgp/gpg.c index 1bd89552..1a9f81c7 100644 --- a/src/pgp/gpg.c +++ b/src/pgp/gpg.c @@ -177,23 +177,23 @@ p_gpg_sign_str(const char * const str, const char * const fp) static char* _remove_header_footer(char *str) { - char *pointer = str; + char *pointer = str; - int newlines = 0; - while (newlines < 3) { - if (pointer[0] == '\n') { - newlines++; + int newlines = 0; + while (newlines < 3) { + if (pointer[0] == '\n') { + newlines++; } - pointer++; + pointer++; - if (strlen(pointer) == 0) { - return NULL; + if (strlen(pointer) == 0) { + return NULL; } - } + } - char *stripped = malloc(strlen(pointer)+1-strlen(PGP_FOOTER)); - strncpy(stripped,pointer,strlen(pointer)-strlen(PGP_FOOTER)); - stripped[strlen(pointer)-strlen(PGP_FOOTER)] = '\0'; + char *stripped = malloc(strlen(pointer)+1-strlen(PGP_FOOTER)); + strncpy(stripped,pointer,strlen(pointer)-strlen(PGP_FOOTER)); + stripped[strlen(pointer)-strlen(PGP_FOOTER)] = '\0'; - return stripped; + return stripped; } \ No newline at end of file -- cgit 1.4.1-2-gfad0