ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/libstatgrab/src/libstatgrab/error.c
(Generate patch)

Comparing projects/libstatgrab/src/libstatgrab/error.c (file contents):
Revision 1.9 by tdb, Wed Apr 7 21:47:50 2004 UTC vs.
Revision 1.10 by ats, Thu Apr 8 11:01:44 2004 UTC

# Line 36 | Line 36 | static char error_arg[ERROR_ARG_MAX];
36   void sg_set_error(sg_error code, const char *arg) {
37          error = code;
38          if (arg != NULL) {
39 <                strlcpy(error_arg, arg, sizeof error_arg);
39 >                sg_strlcpy(error_arg, arg, sizeof error_arg);
40          }
41          else {
42                  /* FIXME is this the best idea? */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines