[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ls segfault
From: |
Mikulas Patocka |
Subject: |
ls segfault |
Date: |
Fri, 23 Apr 2004 16:10:27 +0200 (CEST) |
Hi
This patch fixes segmentation fault with ls on systems, where SIZE_MAX is
different from -1.
Mikulas
--- SRC/LS.C_ 2004-04-23 16:06:44.000000000 +0100
+++ SRC/LS.C 2004-04-23 16:06:49.000000000 +0100
@@ -3244,7 +3244,7 @@
size_t *width)
{
char smallbuf[BUFSIZ];
- size_t len = quotearg_buffer (smallbuf, sizeof smallbuf, name, -1, options);
+ size_t len = quotearg_buffer (smallbuf, sizeof smallbuf, name, SIZE_MAX,
options);
char *buf;
size_t displayed_width IF_LINT (= 0);
- ls segfault,
Mikulas Patocka <=