projects
/
platform
/
upstream
/
xdpyinfo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91f465b
)
Fix line wrapping of extensions list in usage message
author
Alan Coopersmith
<alan.coopersmith@sun.com>
Tue, 20 Mar 2007 17:39:36 +0000
(10:39 -0700)
committer
Alan Coopersmith
<alan.coopersmith@sun.com>
Tue, 20 Mar 2007 17:39:36 +0000
(10:39 -0700)
xdpyinfo.c
patch
|
blob
|
history
diff --git
a/xdpyinfo.c
b/xdpyinfo.c
index
c37d7e8
..
093b7c1
100644
(file)
--- a/
xdpyinfo.c
+++ b/
xdpyinfo.c
@@
-1425,12
+1425,15
@@
print_known_extensions(FILE *f)
int i, col;
for (i = 0, col = 6; i < num_known_extensions; i++)
{
- if ((col += strlen(known_extensions[i].extname)+1) > 79)
+ int extlen = strlen(known_extensions[i].extname) + 1;
+
+ if ((col + extlen) > 79)
{
col = 6;
fprintf(f, "\n ");
}
fprintf(f, "%s ", known_extensions[i].extname);
+ col += extlen;
}
}