diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2020-06-07 20:41:58 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2020-06-07 20:41:58 +0000 |
commit | 94745bf46ae3ccfa0622e338a6c0a8e9b4e64041 (patch) | |
tree | 09d5b66ac8b995835ebcde76f1e455a029647c50 /lib | |
parent | ab960849a3e9adde33b8ba165caad76b25088676 (diff) | |
download | netpbm-mirror-94745bf46ae3ccfa0622e338a6c0a8e9b4e64041.tar.gz netpbm-mirror-94745bf46ae3ccfa0622e338a6c0a8e9b4e64041.tar.xz netpbm-mirror-94745bf46ae3ccfa0622e338a6c0a8e9b4e64041.zip |
silence compiler warnings
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@3850 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/util/nstring.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/util/nstring.h b/lib/util/nstring.h index 8829617d..ee997ab4 100644 --- a/lib/util/nstring.h +++ b/lib/util/nstring.h @@ -22,11 +22,11 @@ extern "C" { array. */ #define STRSCPY(A,B) \ - (strncpy((A), (B), sizeof(A)), *((A)+sizeof(A)-1) = '\0') + (strncpy((A), (B), sizeof(A)-1), *((A)+sizeof(A)-1) = '\0') #define STRSCMP(A,B) \ (strncmp((A), (B), sizeof(A))) #define STRSCAT(A,B) \ - (strncpy(A+strlen(A), B, sizeof(A)-strlen(A)), *((A)+sizeof(A)-1) = '\0') + (strncpy(A+strlen(A), B, sizeof(A)-strlen(A)-1), *((A)+sizeof(A)-1) = '\0') #define STRSEQ(A, B) \ (strneq((A), (B), sizeof(A))) |