remove alloca() dependency

This commit is contained in:
seanpringle
2012-10-29 06:45:26 +10:00
parent 0a896a716a
commit 535ea4ee63
2 changed files with 3 additions and 3 deletions

2
spot.c
View File

@@ -29,7 +29,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
void spot_update_bar(int spot, int mon)
{
int i, n = 0, len = 0; client *o, *c = NULL;
char *title = alloca(SPOT_BUFF); *title = 0;
char title[SPOT_BUFF]; *title = 0;
monitor *m = &monitors[mon];
for_windows(i, o) if (o->manage && o->spot == spot && o->monitor == mon)