summaryrefslogtreecommitdiff
path: root/src/sbuf.c
diff options
context:
space:
mode:
authorsabetts <sabetts>2006-03-16 00:33:34 +0000
committersabetts <sabetts>2006-03-16 00:33:34 +0000
commit9cb1a3d51b8cba35ef443c64b5b1d99fa8d33ae6 (patch)
treec6b2230a429ae887eed80487d1833c1eec129447 /src/sbuf.c
parent0ad6d8b36f975c43f37b0ad07112c2cd31003417 (diff)
downloadratpoison-9cb1a3d51b8cba35ef443c64b5b1d99fa8d33ae6.zip
remove tabs and trailing whitespace.
Diffstat (limited to 'src/sbuf.c')
-rw-r--r--src/sbuf.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/sbuf.c b/src/sbuf.c
index 53c1490..8e4556d 100644
--- a/src/sbuf.c
+++ b/src/sbuf.c
@@ -7,12 +7,12 @@
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
- *
+ *
* ratpoison is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this software; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
@@ -29,7 +29,7 @@ sbuf_new (size_t initsz)
{
struct sbuf *b = (struct sbuf*) xmalloc (sizeof (struct sbuf));
- if (initsz < 1)
+ if (initsz < 1)
initsz = 1;
b->data = (char*) xmalloc (initsz);
@@ -47,8 +47,8 @@ sbuf_free (struct sbuf *b)
if (b != NULL)
{
if (b->data != NULL)
- free (b->data);
-
+ free (b->data);
+
free (b);
}
}
@@ -78,7 +78,7 @@ sbuf_nconcat (struct sbuf *b, const char *str, int len)
b->data = (char*) xrealloc (b->data, minsz);
b->maxsz = minsz;
}
-
+
memcpy (b->data + b->len, str, minsz - b->len - 1);
b->len = minsz - 1;
*(b->data + b->len) = 0;