about summary refs log tree commit diff stats
path: root/src/pgp/gpg.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-03-23 23:42:04 +0000
committerJames Booth <boothj5@gmail.com>2015-03-23 23:42:04 +0000
commit027fa2a7005a475154a344cf0a886e8b9d3962de (patch)
tree8ae9c4101a0e773523b52db545f24e8799352b67 /src/pgp/gpg.c
parent73e1654f282035b7cb52a7c188779c2bc1d4808a (diff)
downloadprofani-tty-027fa2a7005a475154a344cf0a886e8b9d3962de.tar.gz
Fixed tabs
Diffstat (limited to 'src/pgp/gpg.c')
-rw-r--r--src/pgp/gpg.c26
1 files changed, 13 insertions, 13 deletions
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